lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Praveen Peddi" <>
Subject Re: partial updating of lucene
Date Thu, 09 Dec 2004 15:59:29 GMT
If I store all the fields I am indexing, is it safe to get the document, 
update a fields and add it again to the search index? I do not want to lose 
anything and I want to make sure that document is same before and after 
updating (execpt for the updated fields).

----- Original Message ----- 
From: "Erik Hatcher" <>
To: "Lucene Users List" <>
Sent: Thursday, December 09, 2004 10:00 AM
Subject: Re: partial updating of lucene

> On Dec 9, 2004, at 9:48 AM, Praveen Peddi wrote:
>> But when I am searching, it only searches in the index. Stored fields are 
>> only used to display the results, not to search. Why would it lose the 
>> terms in the index when I retrieve the document?
>> First solution is not possible (I can't create a new document) since I 
>> only have modified fields.
>> When I get a document, doesn't the fields have indexed terms along with 
>> it? Is there no way to get a full document (along with indexed terms) and 
>> clone it and add it to the index?
>> Well is there anyway I ca update a document with just one field (because 
>> I only have data for that one field)?
> A Document only carries along its *stored* fields.  Fields that are 
> indexed, but not stored, are not retrievable from Document.
> Have a look at the tool Luke (Google for "luke lucene" :) and see how it 
> does its "Reconstruct and Edit" facility.  It is possible, though 
> potentially lossy, to reconstruct a document and add it again.
> Erik
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message