Hi, I want to use a query type which gives me docs with maximum number of matching terms with user typed terms. I'm using standard tokenizer along with lowercase,asciifolding,suggestions_shingle and edgengrams token filters for both index and search analyzer. Right now I'm using custom score query but it is not giving me terms which contains exact/maximum number of user typed terms. for eg,
If I search for "delhi t", it gives me: delhi delhi 6 delhi to new york -----> after analysis this contains more matching terms delhi 7 delhi to hyderabad ----> same case here But in my docs collections, I have many delhi to <some text> docs, so ideally it should give me those docs which contains "delhi t" as one of the terms since there is exact match. Is there any way by which I can change my custom score query to achieve this ? -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b3a86ef5-a8a5-4d29-93e9-a202cd20ee76%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.