lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Deleted documents appearing in facet fields
Date Thu, 03 Jun 2010 11:33:51 GMT
> Hi,
>        I have a schema with id as
> one of the fields. i index some documents
> (by adding and deleting some documents).
> when i perform faceting on all documents(q=*:*) with
> facet.field=id, i even
> get those id's for which the document is deleted
> 
> for example: (0000025_null,0000026_null are deleted
> documents)
> 
> 
> <lst name="facet_fields">
> <lst name="id">
> <int name="0000022_4">1</int>
> <int name="0000022_5">1</int>
> <int name="0000022_6">1</int>
> <int name="0000022_7">1</int>
> <int name="0000022_8">1</int>
> <int name="0000022_9">1</int>
> <int name="0000025_1">1</int>
> <int name="0000025_null">0</int>
> <int name="0000026_1">1</int>
> <int name="0000026_null">0</int>
> <int name="0000042_1">1</int>
> </lst>
> </lst>
> 
> I was under an impression that facets are performed on the
> search results.
> So i am not able to figure out why this is happening.
> Moreover is there any strategy avoiding this [other than
> optimizing indices
> (coz we cant optimize indices frequently) or setting
> facet.mincount=1 (coz
> probably we can have a different requirement where existing
> documents do not
> satisfy an existing query)],

May be commit with expungeDeletes?     <commit expungeDeletes="true"/>

http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22commit.22_and_.22optimize.22


      

Mime
View raw message