On 2/20/07, Stefano Nicolai <[EMAIL PROTECTED]> wrote:
I'm worried that simply pushing into this field the infos related to the
authors (i.e. "Stephen Rich" and "Karl King") it could give bad answers
to my queries (i.e. returning "Stephen King" as a positive match),
basically mixing up the words it finds inside.

Is there a way to solve this problem? Are the words tokenized with some
sort of relation?

Token positions are indexed by default, so one needs to use a query
type that takes position into account (like phrase or sloppy phrase
queries).

http://lucene.apache.org/java/docs/queryparsersyntax.html

The tokens from multiple values for a field to get indexed "together",
but there is a configurable positionIncrement to help separate the
values.  This can prevent matching across different values in a sloppy
phrase query.

-Yonik

Reply via email to