Search portlet and boolean operators (+, -, ! AND, OR)

thumbnail
Marco Azzalini, modified 6 Years ago. Regular Member Posts: 146 Join Date: 11/18/14 Recent Posts
Hi, I need some clarifications on how works the Search Portlet.
1) The syntax supported is (fully?) compliant to Lucene query parser syntax? I mean, can I write something like this:  +title:word1 -title:word2 AND title:abc* ?If not, where can I find the complete reference of the syntax supported?
2) Suppose I'd like to search for documents that contains word1 and NOT contain word2 in the title, if I use the following query: +title:word1 -title:word2    at first glance it works but if I browse the results set I notice that towards the end there are documents with title that contains both words (word1 and word2). I think this is why using the 'prohibit' (-) operator make those documents get poor ranking and so they are  included at the end. Is it right? If so, how can I  prevent that these documents get included in the results set at all?
thanks in advance,
Marco
P.S: I am using Liferay 6.2 GA3