lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maillard (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-2929) TermsComponent Adding entries
Date Tue, 29 Nov 2011 16:49:40 GMT
TermsComponent Adding entries
-----------------------------

                 Key: SOLR-2929
                 URL: https://issues.apache.org/jira/browse/SOLR-2929
             Project: Solr
          Issue Type: Bug
          Components: SearchComponents - other
    Affects Versions: 3.4, 3.3
         Environment: solr 3.x
            Reporter: maillard
            Priority: Minor


When indexing multiple documents in one go and then updating one of the documents in a later
process Termscomponent count gets wrongfully incremented.

example indexing two documents with a country field as such:

<add>
<doc>
<field name="COUNTRY">US</field>
<field name="ID">L20110121151204207</field>
</doc>
<doc>
<field name="COUNTRY">Canada</field>
<field name="ID">L20110121151204208</field>
</doc>
</add>

Termscomponent returns:
 US(1)
 Canada(1)

Update the first document:

<add>
<doc>
<field name="COUNTRY">US</field>
<field name="ID">L20110121151204207</field>
</doc>
</add>

Termscomponent returns:
 US(2)
 Canada(1)

There still are only two documents in the index.

This does not happen when only dealing with a single doc, or when you update the same set
of documents you initially indexed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message