Hello!

I'd like to have Filters reduce the search space of a Lucene Query. My
experiments with DefaultSimilarity and different kind of filtering show
that this does not happens. Specifically, I noticed that while calculating
tf*idf the values that contribute to the idf (numDocs and docFreq) do not
change even in the presence of filters.

Are parameters like numDocs and docFreq calculated at index creation or are
those retrieved before applying the filter? Is there a way to have the
query being executed after the filter and with values that reflect the
reduced search space?

SO question here:
http://stackoverflow.com/questions/19882257/java-lucene-filters-seem-not-to-alter-the-query-search-space-as-expected-by-me

Gist shportcut here: https://gist.github.com/gevorghari/7438048

Thanks a lot!

Reply via email to