I am developing a searching platform. I want to configure the text scoring algorithm in the engine, so that the more the number of terms that matched my query, the higher the score the engine gives. Just like https://github.com/elastic/elasticsearch/issues/13806.
Are there any methods to achieve it?
Elasticsearch already issues higher scores for documents that match more of your terms if you use something like a query_string query, or should bool query clauses.
However, I'd advise you to not rely on the absolute score values. These are useful only relative to one another for a given execution of a given query, and shouldn't be compared between queries or between instances.
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.