It works fine but the score is computed via TF/IDF (1,4 * 1,9 ....), I would like to have a score that indicate how many categories are matching (1 / 2 / 3 etc..).
did you try constant score and instead of using terms use one optional boolean clause per category with a term (note singular) query? This should work just fine I guess.
Yeah, this is working, but I prefer rely on Lucene tokenizer, so I could get the tokens via ES API and do that, this is a good approach if there is no another way.
I know this is possible to change the similarity algo. via ES settings, is not possible to change / tune TF/IDF algo also ?
I am not sure what you mean, you used terms in your example.. are you refrerring to lowercaseing etc? You can use match query instead in the same example and you should be fine?
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.