-
Improvement
-
Resolution: Fixed
-
Major
-
4.2.0
-
None
-
4.2 RC1
In advanced search, if i select the criterion 'tags' (which is multiple) and 2 values (let's call them A and B for instance):
- If I select the operator 'equal', then the results are all contents which contain the tag A or the tag B
First question: I think it is right, but do you agree with this behavior ?
The generated Solr Query is : tags:A OR tags:B - If I select the operator 'not-equal', then the results are all contents which does not contain either A, neither B
Second question: Do you agree with this behavior ?
The generated Solr Query is : *:* -tags:A OR *:* -tags:B
As you can see, there are missing parenthesis in the generated query. So if the behavior is good, it is by accident (in the TagQuery the logical operator is OR)
Thus, I propose the following PR with a fix in the TagQuery AND a fix in the TagsSystemProperty to keep the existing behavior.
Please can we discuss those points and the PR ?