lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: Modifying a document by updating a payloads?
Date Wed, 30 Jul 2008 12:24:44 GMT

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:

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.


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:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message