Currently I am working on getting term frequency (not document frequency) of term in particular field for whole index. For that I am using function query ttf(field_name,'term'), This returns me total occurrences of term in that field. But It seems it is also considering deleted documents while calculating count. I have verified this using index optimization, after optimization It is showing me correct count.
How can we get exact term frequency with excluding deleted documents term frequency, and that is without optimization because optimization is expensive in our case ? Is there any other way we can get term frequency for entire collection in solr? I have also tried following solutions, I have also explored other options like, 1. term vector component - It returns per document term frequency for the documents which matched the query. 2. facet - it returns document frequency 3. Luke request handler - returns top terms from given field (document frequency) 4. terms component - returns document frequency -- View this message in context: http://lucene.472066.n3.nabble.com/Total-term-frequency-in-solr-includes-deleted-documents-tp4166288.html Sent from the Solr - User mailing list archive at Nabble.com.