mirror of
https://github.com/yacy/yacy_search_server.git
synced 2026-10-25 05:54:15 +00:00
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:
1 parent
0c6d95e57b
commit
fabda9ad31
2 files changed
+9
No files matched your search
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
cd "`dirname $0`"
|
||||
./apicall.sh "/IndexControlURLs_p.html?urlhashdeleteall=&urlstring=$1" > /dev/null
|
||||
@@ -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://") &&
|
||||
|
||||
Reference in new issue
Block a user