Hi, I only use BooleanQuery with TermQuery clauses.
I found following methods that seems relevant to my need. There is a variable named maxOverlap, which is the total number of terms in the query. BooleanScorer's constructor has maxCoord variable Similarity#coord BooleanWeight#coord How can I pass query length(maxOverlap/maxCoord) inside the Similarity.SimScorer#score method? Any help on this is really appreciated. Thanks, Ahmet On Tuesday, October 27, 2015 10:27 AM, Ahmet Arslan <iori...@yahoo.com> wrote: Hi, How can I access length of the query (number of words in the query) inside a SimilarityBase implementation? P.S. I am implementing multi-aspect TF [1] for an experimental study. So it does not have to be fast/optimized as production code. [1] http://dl.acm.org/citation.cfm?doid=2484028.2484070 Thanks, Ahmet --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org