Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixes to index deletion: quoting of host name (a '-' may be part of the url) and disabling the engage button when changing the url field at 'Delete by URL matching'
Michael Peter Christenfdcd4e6a6f56
diff --git a/htroot/IndexDeletion_p.html b/htroot/IndexDeletion_p.htmlindex eadeb3927..2fdcd172e 100644--- a/htroot/IndexDeletion_p.html+++ b/htroot/IndexDeletion_p.html@@ -17,7 +17,7 @@<dl><dt>One URL stub, a list of URL stubs<br/>or a regular expression</dt><dd>- <textarea name="urldelete" id="crawlingURL" cols="64" rows="3" size="41" >#[urldelete]#</textarea>+ <textarea name="urldelete" id="crawlingURL" cols="64" rows="3" size="41" onClick="d=document.getElementById('engage-urldelete');d.disabled=true;d.className='dangerdisarmed';">#[urldelete]#</textarea></dd><dt>Matching Method</dt><dd>diff --git a/htroot/IndexDeletion_p.java b/htroot/IndexDeletion_p.javaindex d886191b2..6c47457bb 100644--- a/htroot/IndexDeletion_p.java+++ b/htroot/IndexDeletion_p.java@@ -130,7 +130,7 @@ public class IndexDeletion_p {}try {DigestURI u = new DigestURI(urlStub);- BlockingQueue<SolrDocument> dq = defaultConnector.concurrentDocumentsByQuery(CollectionSchema.host_s.getSolrFieldName() + ":" + u.getHost(), 0, 100000000, Long.MAX_VALUE, 100, CollectionSchema.id.getSolrFieldName(), CollectionSchema.sku.getSolrFieldName());+ BlockingQueue<SolrDocument> dq = defaultConnector.concurrentDocumentsByQuery(CollectionSchema.host_s.getSolrFieldName() + ":\"" + u.getHost() + "\"", 0, 100000000, Long.MAX_VALUE, 100, CollectionSchema.id.getSolrFieldName(), CollectionSchema.sku.getSolrFieldName());SolrDocument doc;try {while ((doc = dq.take()) != AbstractSolrConnector.POISON_DOCUMENT) {