Examine is a wrapper around Lucene, and Lucene is highly performant text search engine - depending on the analyzer used then some normal English words are ignored - eg why take up space indexing words like 'it' or 'of' - who would search for them etc....
These are referred to as 'StopWords' - and for the standard analyzer are the following words:
final List
You'll notice "in" is on the list...
which is why your query fails for searches in India!!! as In is being ignored.
There is some info here about how you could modify this list:
Is Examine search ignoring certain keywords or my query is wrong?
I am building Examine search in Umbraco and am searching by either keyword or country code or city but I am getting wrong results for some of them.
For example I search for
countryCode = IN
andstartCity = New Delhi
I pass a list of required properties (MUST properties):
But the Examine builds the query as:
evidently ignoring
countryCode
IN
valueSame if I search only by country:
I receive the following query:
Here I am getting wrong results, because the search returns all
product
nodes instead of the ones containing INcountryCode
.If I look up by a keyword (it uses
Or
properties so should return products when either of fields contain the keyword):it again returns all nodes which is wrong because FOR SURE only a few nodes (up to 20) contain this specific word (case sensitive or not).
This is how I am building my query:
And my indexer and searcher:
Is Examine ignoring certain keywords or my query is wrong? If wrong how should I fix it?
I ma using umbraco 7.6 if this matters.
Hi manila
Examine is a wrapper around Lucene, and Lucene is highly performant text search engine - depending on the analyzer used then some normal English words are ignored - eg why take up space indexing words like 'it' or 'of' - who would search for them etc....
These are referred to as 'StopWords' - and for the standard analyzer are the following words:
final List
You'll notice "in" is on the list...
which is why your query fails for searches in India!!! as In is being ignored.
There is some info here about how you could modify this list:
https://our.umbraco.com/forum/developers/extending-umbraco/25600-Examine-case-insensitive-keyword-search#comment-95336
or I guess, store more text to identify the country in the index.
regards
Marc
is working on a reply...