Ok, If anyone wants to disable IDF, disable TF, as to just score based on the presence of a term and boost value on the field, in elastic search v5+, then see the following plugin:
If you don't want to disable TF but don't know how to make a plugin, the code in the repo above should help, adding TF should be simple.
Also note some guy has implemented this into the latest elasticsearch code, see:
You will just need to set "similarity": "boolean" on properties. This is available in elasticsearch 5.4.0 +
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.