Oh ok, I got it. So If I update the document three times, does that mean I have 1 normal document, and 2 marked for deletion?
Because the max difference was 1 - no matter how many times you update. I think I can manage the faceting to do what I need. I guess that will be faster than making a real query, and extracting the full docs. Best Regards, -C.B. On Fri, May 25, 2012 at 10:14 AM, Chris Hostetter <hossman_luc...@fucit.org> wrote: > > : the terms count go +1 for that specific term. for example, if I have > : two documents in index, each with tag="ccc" and if I update one of the > : documents, the terms frequency for ccc becomes 3. when I optimize the > : index, it goes down again to correct number. (2) > > http://wiki.apache.org/solr/TermsComponent > >>> Retrieving terms in index order is very fast since the implementation >>> directly uses Lucene's TermEnum to iterate over the term dictionary. > ... >>> The doc frequencies returned are the number of documents that match the >>> term, including any documents that have been marked for deletion but >>> not yet removed from the index. > > : Is there any way to get the exact term frequency? > > field faceting. > > > -Hoss