Fuzzy query


(hitchhikar) #1

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?

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6fdee1fb-225d-43b6-b306-eb36c76b95f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(hitchhikar) #2

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 received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/bf2571f4-2fb5-448a-b316-68e5a4faf77f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(eunever32) #3

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. ?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/57bc7d7b-5bcb-4242-b8d6-c6b8f940d6df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4