Affects Version/s: 6.2.10 EE GA1, 6.2.X EE, 7.0.0 M4
OR queries like this (in Lucene syntax) doesn't return the expected results:
Steps to reproduce it:
- Configure the portal to use Solr.
- Create two contents, one with title dogs and other one with title cats
- Go to Control Panel/Server Administration/Scripts
- Select Groovy as language and execute the following script:
The script should print (expected result):
Number of resources found: 2
But it returns more results.
For solr we add the companyID as a query condition but for queries like the previous one generates:
title:cats title:dogs +companyId:XXXX
So it returns all the objects which match with the companyId regardless of the rest of the queries conditions.
*This doesn't occur for Lucene since we don't to filter by companyId due to it exists an index for each instance.