RE: Only last field indexed

2008-10-09 Thread John Griffin
Subject: Re: Only last field indexed You are doing this kind of a thing? document.add(new Field(id, id1, Field.Store.YES, Field.Index.TOKENIZED)); document.add(new Field(id, id2, Field.Store.YES, Field.Index.TOKENIZED)); I doubt whether this is possible. What happen to the value id1 when

Re: Only last field indexed

2008-10-08 Thread Kalani Ruwanpathirana
You are doing this kind of a thing? document.add(new Field(id, id1, Field.Store.YES, Field.Index.TOKENIZED)); document.add(new Field(id, id2, Field.Store.YES, Field.Index.TOKENIZED)); I doubt whether this is possible. What happen to the value id1 when the value id2 added to the same filed?

Re: Only last field indexed

2008-10-08 Thread Erick Erickson
Kalani: You are mistaken to think this is not possible. In fact it is explicitly supported, and I've done it in many situations. These two are entirely identical if you use an analyzer that breaks the stream up on words. doc = new Document() doc.add(myfield, some text, blah blah)

Only last field indexed

2008-10-07 Thread John Griffin
Guys, I'm adding multiple fields with the same name to a document as Store.YES, Indexed.TOKENIZED and it seems that only the last field entered is indexed. I read about this somewhere her but now I can't find it, naturally. Is there a work around? does someone have a pointer to this discussion?

Re: Only last field indexed

2008-10-07 Thread Erick Erickson
Let's see the indexing code. It is perfectly reasonable to add data to a field multiple times, so I suspect you're doing something wrong. What evidence do you have that it's only the last field that's indexed? Best Erick On Tue, Oct 7, 2008 at 1:28 PM, John Griffin [EMAIL PROTECTED]wrote: