Hi
My question is re fuzzy query.
I have indexed products and searching on the title field.
As i want to accommodate for typos, I am doing a fuzzy search with
edit_distance 1.
The issue is that for a query "shirt" , products matched are with one
having "shirt" and "short" in title (due to fuzziness)
Altho I am able to boost shirt over short in resultset, but nonetheless
shorts are still coming down in results which makes it look weird for the
end user.
How can i make sure that if exact matches are found then fuzzy ones are not
returned?
Is there somequery type where I can write 'n' queries (in array...a chain)
so that ES executes them seqeuntially and there is a break condition in
every query to not execute any further query in chain if the break
condition is met?
Will be immensely useful if this feature can be provided!
You could index the data twice
Once analysed. Once not analysed.
Then query not analysed.
And if results then display those.
Otherwise query the analysed and display those. ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.