It appears there may be some confusion about how Elasticsearch matches and scores documents. In your case, if the documents share the same terms, it may be difficult to filter as you want. Instead, we can focus on getting relevant results to the top of the list, which can be more useful. Focusing on having the most accurate documents at the forefront of your results may be a more effective approach to meeting your needs.
Am getting the relevant result based on the search term at first, based on the scores, but after I am getting the data is irrelevant to to the search. is there any way to achieve this?
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.