Is there a way to make “match_phrase” only look for a match, but not take other things into account, like the match in relation to other terms in the text field?
i.e. If I search "star wars", "Star Wars: Revelations" receives a hire score than "Star Wars: The Last Jedi" because "Star Wars: Revelations" has 3 terms vs "Star Wars: The Last Jedi" which has 5 terms.
I would like all of them to receive a consistent score. Because I am then using function_score to rank them on an internal popularity value.
I guess I am looking for something like does the text field have the term? Score is: yes=1 no=0
That should be possible with constant score, something like this for default boost/score of 1.0 for every match and will not return documents which do not match here:
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.