added script that can be used to delete a single url from the index

call:
bin/deleteurl.sh <url>


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7969 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter committed 2011-09-21 23:33:44 +00:00
1 parent 0c6d95e57b
commit fabda9ad31
2 files changed
+9

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
cd "`dirname $0`"
./apicall.sh "/IndexControlURLs_p.html?urlhashdeleteall=&urlstring=$1" > /dev/null
+6
View File
@@ -129,6 +129,12 @@ public class IndexControlURLs_p {
// post values that are set on numerous input fields with same name
String urlstring = post.get("urlstring", "").trim();
String urlhash = post.get("urlhash", "").trim();
if (urlhash.length() == 0 && urlstring.length() > 0) {
try {
urlhash = ASCII.String(new DigestURI(urlstring, null).hash());
} catch (final MalformedURLException e) {
}
}
if (!urlstring.startsWith("http://") &&
!urlstring.startsWith("https://") &&