i'm uisng the following query for matching against five fileds but unable to see any sorting by
relevance in Elasticsearch 5.5 .How to achieve the said thing within this form of query pattern?
I don't see the issue ? Your multi_match query will consider match coming from name three times better than a match coming from company for instance. The score on each document should reflect the boosts of your query.
Like I mean that suppose i search for "ar" it spills out arnab 5 first then comes arnab 3
Moreover if i'm searching for "srikant" srikanth comes first then srikant comes.
would be grateful if i get some help.
I think you are better off using multi phrase queries than fuzzy query for your scenario. Fuzzy query can get very heavy and it is going to create multi terms within edit distance you have configured. From your example, it looks like all you need is an extrapolation of search terms.
Onto your second point, which search term is generated, it will be used to do a search and generate a relevance score. Finally all results will be (by default) sorted by relevance and returned back to you. I'm not sure if the sorting you are expecting will be of much value to you.
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.