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
pull/1/head
reger 11 years ago
parent f02203fb2f
commit f87ac716f3

@ -108,6 +108,8 @@ public class IndexDeletion_p {
// Delete by Solr Query
prop.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);

Loading…
Cancel
Save