On Mar 26, 2008, at 3:11 AM, Vinci wrote:
While I changing the default schema.xml, I found this attribute where
defined the analyzer...seems it will add some space when multiple fields appear in document, but what is its effect appear in query and what is the
values mean here?

Suppose you add two tokenized "author"s for a document:

   author: Billy Bob
   author: Thorton Gospodnetic

Without a position gap, the phrase query of "Bob Thorton" would match! However, with a position increment gap defined you can avoid that match. The value you set that gap to depends on whether you'll be using sloppy phrase queries, and how sloppy they'll be and whether you desire matching across field instances. Under the covers, remember, that a tokenized field is just a string of terms, even with multiple field instances.

        Erik

Reply via email to