> 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