lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Sekiguchi <k...@r.email.ne.jp>
Subject Re: TermsComponent results don't change after documents removed from index
Date Tue, 03 Nov 2009 22:09:52 GMT
Bill Au wrote:
> Should the results of the TermsComponent change after documents have been
> removed from the index?  I am thinking about using the prefix of
> TermsComponent to implement auto-suggest.  But I noticed that the prefix
> counts in TermsComponent don't change after documents have been deleted.
> The deletes are done with the standard update handler using a
> delete-by-query.  Since the TermsComponent is showing the number of
> documents matching the terms, the number should be decreasing when documents
> are deleted.
>
> I can reproduce this using the sample in the tutorial and the TermsComponent
> prefix query in the Wiki:
> http://wiki.apache.org/solr/TermsComponent
>
> The output of the TermsComponent prefix doesn't change even after I removed
> all the documents:
>
> java -Ddata=args -jar post.jar "<delete><query>id:*</query></delete>"
>
> What am I doing wrong?
>
> Bill
>
>   
This is a feature of Lucene... docFreq is not changed until segments 
containing
deletions are merged. You can do optimize to correct docFreq.

Koji

-- 
http://www.rondhuit.com/en/


Mime
View raw message