On Oct 3, 2008, at 5:10 AM, sanraj25 wrote:
what is the purpose of positionIncrementGap attribute in field
type tag of schema.xml. The value specified for that
positionIncrementGap=100. If we change the value  what will happen?

Suppose a document has a multi-valued "author" field.   Like this:

author: John Doe
author: Bob Smith

With a position increment gap of 0, a phrase query of "doe bob" would be a match. But often it is undesirable for that kind of match across different field values. A position increment gap controls the virtual space between the last token of one field instance and the first token of the next instance. With a gap of 100, this prevents phrase queries (even with a modest slop factor) from matching across instances.

        Erik

Reply via email to