lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Spam <ps...@mac.com>
Subject Re: How to Update Value of One Field of a Document in Index?
Date Wed, 27 Apr 2011 04:35:16 GMT
My schema: id, name, checksum, body, notes, date

I'd like for a user to be able to add notes to the notes field, and not have to re-index the
document (since the body field may contain 100MB of text).  Some ideas:

1) How about creating another core which only contains id, checksum, and notes?  Then, "updating"
(delete followed by add) wouldn't be that painful?

2) What about using a multValued field?  Could you just keep adding values as the user enters
more notes?


Pete

On Sep 9, 2010, at 11:06 PM, Liam O'Boyle wrote:

> Hi Savannah,
> 
> You can only reindex the entire document; if you only have the ID,
> then do a search to retrieve the rest of the data, then reindex.  This
> assumes that all of the fields you need to index are stored (so that
> you can retrieve them) and not just indexed.
> 
> Liam
> 
> On Fri, Sep 10, 2010 at 3:29 PM, Savannah Beckett
> <savannah_beckett30@yahoo.com> wrote:
>> 
>> I use nutch to crawl and index to Solr.  My code is working.  Now, I want to
>> update the value of one of the fields of a document in the solr index after the
>> document was already indexed, and I have only the document id.  How do I do
>> that?
>> 
>> Thanks.
>> 
>> 
>> 


Mime
View raw message