Page 1 of 1

OpenKM Search Question

PostPosted:Wed Mar 26, 2014 5:47 am
by Raphel
Hi,

I have a query regarding the way OKMSearch searches the text. Suppose if I have document which contains both the text 'NOT' and 'FOUND', if I search for
'FOUND' text alone, then OKMSearch returns this document as a match. Suppose if I search for both the words 'NOT' and 'FOUND', this document is not getting
returned as a match. Why the use of the word 'NOT' negates the search and if there is a workaround by way of some configuration setting to force OpenKM search to consider 'NOT' to be included as part of search criteria.

Re: OpenKM Search Question

PostPosted:Wed Mar 26, 2014 9:19 pm
by pavila
When you search by "TERM1 TERM2" the generated Lucene query is "+TERM1 +TERM2". This means that both terms should be found in the document. The word "NOT" was removed from the indexed text because is a common word. For example, if the document contains:
Code: Select all
this document is not found
You can find it by "document found" but won't be found by "is found" or "not found".