From fdcd4e6a6f56c775334db657b64078fec2e2198d Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 7 Jun 2013 08:52:07 +0200 Subject: [PATCH] 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' --- htroot/IndexDeletion_p.html | 2 +- htroot/IndexDeletion_p.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htroot/IndexDeletion_p.html b/htroot/IndexDeletion_p.html index eadeb3927..2fdcd172e 100644 --- a/htroot/IndexDeletion_p.html +++ b/htroot/IndexDeletion_p.html @@ -17,7 +17,7 @@
One URL stub, a list of URL stubs
or a regular expression
- +
Matching Method
diff --git a/htroot/IndexDeletion_p.java b/htroot/IndexDeletion_p.java index 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 dq = defaultConnector.concurrentDocumentsByQuery(CollectionSchema.host_s.getSolrFieldName() + ":" + u.getHost(), 0, 100000000, Long.MAX_VALUE, 100, CollectionSchema.id.getSolrFieldName(), CollectionSchema.sku.getSolrFieldName()); + BlockingQueue 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) {