If you're referring to the internally-assigned document id, I don't think
there is a way. Assuming you're trying to assign one yourself or some
such.

>From all the discussions I've seen, I don't think there's even a faint
possibility that controlling this will be added to Lucene. Note that
existing IDs change as your index changes.

Why do you care? What problem are you trying to solve? One common
suggestion is to create your own field (as Patrick suggests) that contains
your own unique ID. Using TermEnum/TermDocs will give you efficient
ways of going from your unique ID to a docID...

Best
Erick

On Feb 9, 2008 7:38 AM, Gauri Shankar <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I would like to get the control over the docId field from my code. Can
> anyone suggest some way for doing the same?
>
>
> --
> Warm Regards,
> Gauri Shankar
>

Reply via email to