Actually i want to build an suggestion box, for that i need to suggest the exact String or equivalent to 80% matched strings only.. I have used Auto complete filter, it is providing more irrelevant data to search. So please help me to build an suggestion box.
Actually this giving results by matching input string with words present in sentences..Example:: while i am trying to get "india" related data it is giving indo-tibettan,indonesia etc...
but i want to get exact matched string data.
Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.
Or use markdown style like:
```
CODE
```
There's a live preview panel for exactly this reasons.
Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.
Please update your post.
Anyway, add in your mapping a search_analyzer: simple for the field you want to search on.
I am getting same set of results after adding "search_analyzer: simple" in mappings also..
I have another doubt can we extract exact matched data without applying any analysers?
Thanks in Advance
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem.
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.