Apache

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
Home » Development Group »» Apache
  • modify existing non-indexed field

    0 answers - 716 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

    Yes, you can do something like that, but of course you have to delete the old Document, and add the new, modified oneto the index, too. I do something like that on one of the Simpy.com indices and it works nicely.
    Message
    From: dan2000 <liudan (AT) ntlworld (DOT) com>
    To: java-user (AT) lucene (DOT) apache.org
    Sent: Friday, July 7, 2006 6:54:18 AM
    Subject: modify existing non-indexed field
    Is it possible to modify a stored field but not indexed? for example, if I
    have a field like this:
    new Field("address", address, Field.Store.YES, Field.Index.N)
    and I want to modify it like this:
    hits.doc(i).getField("address").set("11 Diana Street");
    Is it possible?

Re: modify existing non-indexed field


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
SPONSORED
QUESTION

SPONSORED
EMSDN