You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by RaghavPrabhu <ra...@gmail.com> on 2009/01/18 12:32:55 UTC

UniqueKey documents getting indexed multiple time

Hi all,

 Im updating the document in solr with uniqueKey.The problem is when i
update the document in the solr with same uniqueKey, that also getting
indexed.Generally, when the document having the uniqueKey which is already
indexed,it should delete the old one and new one to be indexed.In my case
all documents with same uniqueKey also indexed.How can i rectify this
problem?

<field name="keyID" type="text" indexed="true" stored="true"
multiValued="true" required="true"/>

<uniqueKey>keyID</uniqueKey>


Pls give the solution as soon as possible.

Thanks in advance
Prabhu.K
-- 
View this message in context: http://www.nabble.com/UniqueKey-documents-getting-indexed-multiple-time-tp21526766p21526766.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: UniqueKey documents getting indexed multiple time

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
The uniqueKey should be a non-tokenized field to avoid this kind of a
problem.

Try making the uniqueKey a string type.

On Sun, Jan 18, 2009 at 5:02 PM, RaghavPrabhu <ra...@gmail.com>wrote:

>
> Hi all,
>
>  Im updating the document in solr with uniqueKey.The problem is when i
> update the document in the solr with same uniqueKey, that also getting
> indexed.Generally, when the document having the uniqueKey which is already
> indexed,it should delete the old one and new one to be indexed.In my case
> all documents with same uniqueKey also indexed.How can i rectify this
> problem?
>
> <field name="keyID" type="text" indexed="true" stored="true"
> multiValued="true" required="true"/>
>
> <uniqueKey>keyID</uniqueKey>
>
>
> Pls give the solution as soon as possible.
>
> Thanks in advance
> Prabhu.K
> --
> View this message in context:
> http://www.nabble.com/UniqueKey-documents-getting-indexed-multiple-time-tp21526766p21526766.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>


-- 
Regards,
Shalin Shekhar Mangar.