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
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
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/