Download & Extend

Error in bias query logic breaks some negative search queries

Project:Search Lucene API
Version:6.x-2.0-beta3
Component:Code
Category:bug report
Priority:critical
Assigned:cpliakas
Status:closed (fixed)
Issue tags:6.x-2.0-beta4

Issue Summary

The content bias queries need to be reconstructed. If you search for 'title:test -content", the expected results would be nodes containing the word "test" in the title and not containing "content" anywhere in the node. However, documents with "test" in the title will still be returned even if "contents" is in the body which is incorrect. Because of the way the query objects are written, a hook needs to be added that will allow users to rebuild the entire query as some elements are not accessible in hook_luceneapi_query_alter().

Comments

#1

#2

Status:active» fixed

Fixed in commit #285930.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here