You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ZHANG Liang F <Li...@alcatel-sbell.com.cn> on 2012/06/26 07:47:27 UTC

what is precisionStep and positionIncrementGap:

Hi, 
in the schema.xml, usually there will be fieldType definition like this: <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>

the precisionStep and positionIncrementGap is not very clear to me. Could you please elaborate more on these 2?

Thanks!

Re: what is precisionStep and positionIncrementGap:

Posted by Erick Erickson <er...@gmail.com>.
For PrecisionStep, see:
http://lucene.apache.org/core/3_6_0/api/all/org/apache/lucene/search/NumericRangeQuery.html?is-external=true

positionIncrementgap is for multiValued text fields, it is the "space"
put between the last token of one entry and the first of the next.
e.g.
<field name="mv">some stuff</field>
<field name="mv">more things</field>

Assume the two were in a single document you added and assume the
increment gap were 100. The token positions would be 0, 1, 101 and
102. so the phrase "stuff more" wouldn't match.


Best
Erick

On Tue, Jun 26, 2012 at 1:47 AM, ZHANG Liang F
<Li...@alcatel-sbell.com.cn> wrote:
> Hi,
> in the schema.xml, usually there will be fieldType definition like this: <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
>
> the precisionStep and positionIncrementGap is not very clear to me. Could you please elaborate more on these 2?
>
> Thanks!