Roy Klein wrote:
E.g.
   doc1.add(Field.indexed("field","the");
   doc1.add(Field.indexed("field","quick");
   doc1.add(Field.indexed("field","brown");
   doc1.add(Field.indexed("field","fox");
   doc1.add(Field.indexed("field","jumped");
   writer.addDocument(doc1);
Vs.
   doc2.add(Field.indexed("field","the quick brown fox jumped");
   writer.addDocument(doc2);

Is there a difference in query performance when I query on fields that
have been added multiple times vs fields which were added with the
entire field contents at once?

No.


Also FYI, I found that phrase queries don't work against a field that's
been added multiple times. If I query the phrase "brown fox", against
the two example docs above, only the second matches.

They should work the same. I'm not sure what Field.indexed does. That's not a normal Lucene method.


Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to