Fields with the same name

2008-10-15 Thread Rafael Almeida
I didn't quite understand the Document documentation so well, the documentation says: "Adds a field to a document. Several fields may be added with the same name. In this case, if the fields are indexed, their text is treated as though appended for the purposes of search." Would doc.add(new

Re: Fields with the same name

2008-10-15 Thread Rafael Almeida
On Wed, Oct 15, 2008 at 4:22 PM, Erick Erickson <[EMAIL PROTECTED]> wrote: > Yes, in terms of what you probably mean, but your first > example would index one token "bar1bar2". But if you > changed your first example to (note space): they would > be entirely equivalent. > > doc.add(new Field("foo

QueryParser

2008-10-18 Thread Rafael Almeida
On queryparser's documentation says: "Note that QueryParser is not thread-safe." it only means that the same instance of QueryParser can't be used by multiple threads, right? But if each thread has its own QueryParser instance, then it's OK, right? BTW, the link http://lucene.apache.org/java/docs/