Why search result is incorrect?
I need to do some attribute query in ram, such as "attributeName:(App. Type) attributeValue:(Package - SAP)". But the result is incorrect, the asset whose App. Type value is 'Package - Oracle' returned in search result. Anybody met this before? Why this happens? I guess it is caused by special characters in value field, but not sure.
One answer
The "-" is a special Lucene character, see http://lucene.apache.org/java/2_4_0/queryparsersyntax.html#-
Did you try Package \- SAP
Did you try Package \- SAP