lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <simon.willna...@googlemail.com>
Subject Re: Lucene: assigning custom ids ?
Date Mon, 28 Feb 2011 22:53:50 GMT
On Mon, Feb 28, 2011 at 5:19 PM, aneuryzma <patrick.diviacco@gmail.com> wrote:
> Can I assign my custom ids to Lucene indexed documents instead of
> automatically generate new ids ?
>
> I'm asking this because I already have ids in my collection. A specific
> field is used for that.

just add your ID as a Lucene Field and use it for updating and deleting.

you can not change Lucene's internal IDs

simon
>
> thanks
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Lucene-assigning-custom-ids-tp2596217p2596217.html
> Sent from the Lucene - General mailing list archive at Nabble.com.
>

Mime
View raw message