Re: Altering Term Frequency in Similarity

2016-12-15 Thread Robert Muir
Maybe have a look at SynonymQuery: https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/search/SynonymQuery.java I think it does a similar thing to what you want, it sums up the frequencies of the synonyms and passes that sum to the similarity class as TF. On

Altering Term Frequency in Similarity

2016-12-14 Thread Mossaab Bagdouri
Hi, I'm using Lucene 6.3.0, and trying to handle synonyms at query time. I think I've handled DF correctly with BlendedTermQuery (by returning the max DF of the synonyms). TTF is also handled by the same class. Now, I want to handle the term frequency. As far as I can tell, raw TF is given to