Re: Access query length inside similarity

2015-11-03 Thread Ahmet Arslan
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

Access query length inside similarity

2015-10-27 Thread Ahmet Arslan
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.2484