Unfortunately you will have to delete the old doc, then reindex a new doc, in order to change any payloads in the document's Tokens.

This issue:

    https://issues.apache.org/jira/browse/LUCENE-1231

which is still in progress, could make updating stored (but not indexed) fields a much lower cost operation, but that's not for sure and it's not clear when that issue will be done.

Mike

Antony Bowesman wrote:

I seem to recall some discussion about updating a payload, but I can't find it.

I was wondering if it were possible to use a payload to implement 'modify' of a Lucene document. For example, I have an ID field, which has a unique ID refering to an external DB. For example, I would like to store a short bitmap giving state information about aspects of the Document and this state could change during the life of the Document and be available to my searchers.

I've not yet played with payloads and I understand there is something in the pipeline about updating Documents, but is it possible to update a payload for an existing Document?

Antony



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to