Hi, How can we normalize BM25 scores by the query length (number of tokens) in Lucene or elasticsearch? I can access document fields by scripting or lucene expressions in elasticsearch (https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting-expression.html) but I could not find a way to get number of query tokens inside a script. So do I have to write my custom Lucene/elasticsearch query for this? Is there any other possible way?
thanks rifat -- View this message in context: http://lucene.472066.n3.nabble.com/Is-it-possible-to-normalise-BM25-scores-in-the-query-level-tp4342991p4343513.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org