lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar" <shalinman...@gmail.com>
Subject Re: UniqueKey documents getting indexed multiple time
Date Sun, 18 Jan 2009 13:49:44 GMT
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 <raghavprabhu06@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.

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