Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
improve IndexDeletion by query adding transparently text_t as pseudo default search field if no fieldname (no : ) is included. adressing bug report http://mantis.tokeek.de/view.php?id=274
regerf87ac716f36e
diff --git a/htroot/IndexDeletion_p.java b/htroot/IndexDeletion_p.javaindex 224ae41fd..073856e30 100644--- a/htroot/IndexDeletion_p.java+++ b/htroot/IndexDeletion_p.java@@ -108,6 +108,8 @@ public class IndexDeletion_p {// Delete by Solr Queryprop.put("querydelete", "");String querydelete = post == null ? "" : post.get("querydelete", "");+ // simulate default search field if no field is given by adding text_t: as target field+ if (!querydelete.isEmpty() && !querydelete.contains(":")) querydelete = CollectionSchema.text_t.getSolrFieldName() + ":" + querydelete;prop.put("querydelete", querydelete);prop.put("querydelete-active", 0);