mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-07-15 08:06:08 -04:00
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
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user