lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rakhi Khatwani <>
Subject Deleted documents appearing in facet fields
Date Thu, 03 Jun 2010 11:16:42 GMT
       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>

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)],


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message