You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@lucene.apache.org by emre <em...@gmail.com> on 2010/11/10 12:31:48 UTC

Solr can't save some documents with specific uid

Hi
I am having some issues while trying to save some documents in Solr.
I noticed that SOLR doesn't save a document with a specific uid, I can only
manage to save it by chaning the uid.
Did anyone have experienced a similar problem.
thank you


-- 
View this message in context: http://lucene.472066.n3.nabble.com/Solr-can-t-save-some-documents-with-specific-uid-tp1875430p1875430.html
Sent from the Lucene - General mailing list archive at Nabble.com.

Re: Solr can't save some documents with specific uid

Posted by Ted Dunning <te...@gmail.com>.
This behavior is inherent in the way that Lucene works.

You should not retain document id's external to an index if you are doing
document updates.

If you need a persistent unique identifier, add that id as a field and use
Lucene's search to get the document you want.  That id can be retained
outside of Lucene safely.

On Wed, Nov 10, 2010 at 3:31 AM, emre <em...@gmail.com> wrote:

>
> Hi
> I am having some issues while trying to save some documents in Solr.
> I noticed that SOLR doesn't save a document with a specific uid, I can only
> manage to save it by chaning the uid.
> Did anyone have experienced a similar problem.
> thank you
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Solr-can-t-save-some-documents-with-specific-uid-tp1875430p1875430.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>