lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trejkaz <>
Subject Re: Are "position" and "position increment" actually the exact same concept?
Date Sun, 14 Feb 2016 10:51:33 GMT
On Tue, Feb 9, 2016 at 2:39 AM, András Péteri
<> wrote:
> It's only the naming of FieldQueryNode's property that seems ambiguous to
> me. The caller of setPositionIncrement(int), AnalyzerQueryNodeProcessor
> [1], computes absolute term positions and stores that value in the
> property, not the increments. If the term attribute is not available, it'll
> increment the position by 1 for each term/groups of terms.
> [1]

Ah, that would explain my issue then. I had a custom builder which was
taking it as the position increment and computing the position and had
wondered why I was getting "sliding" positions only for our own custom
query nodes while somehow the normal phrase queries were working. :)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message