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'
pull/1/head
Michael Peter Christen 12 years ago
parent d367b1f4d9
commit fdcd4e6a6f

@ -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>

@ -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) {

Loading…
Cancel
Save