Actually not.
If i am updating the existing document, i need to keep the old number
itself.

may be this way we can do it.
If we pass the number to the field, it will take that value, if we dont
pass it, it will do auto-increment.
Because if we update, i will have old number and i will pass it as a field
again.

On Fri, Apr 6, 2012 at 9:59 AM, Walter Underwood <wun...@wunderwood.org>wrote:

> Why?
>
> When you reindex, is it OK if they all change?
>
> If you reindex one document, is it OK if it gets a new sequential number?
>
> wunder
>
> On Apr 5, 2012, at 9:23 PM, Manish Bafna wrote:
>
> > We already have a unique key (We use md5 value).
> > We need another id (sequential numbers).
> >
> > On Fri, Apr 6, 2012 at 9:47 AM, Chris Hostetter <
> hossman_luc...@fucit.org>wrote:
> >
> >>
> >> : We need to have a document id available for every document (Per core).
> >>
> >> : We can pass docid as one of the parameter for fq, and it will return
> the
> >> : docid in the search result.
> >>
> >>
> >> So it sounds like you need a *unique* id, but nothing you described
> >> requies that it be a counter.
> >>
> >> Take a look at the UUIDField, or consider using the
> >> SignatureUpdateProcessor to generate a key based on a hash of all the
> >> field values.
> >>
> >> -Hoss
> >>
>
>
>
>
>
>

Reply via email to