[
https://issues.apache.org/jira/browse/LUCENE-7848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16053892#comment-16053892
]
Dawid Weiss commented on LUCENE-7848:
-------------------------------------
This isn't urgent and can wait.
As for indexing graphs, I though it was the other way around, sorry about that.
But even if, the index created for this particular input seems to be just fine,
look:
{code}
field field
term -
doc 0
freq 2
pos 2
pos 7
term PROJECTS
doc 0
freq 2
pos 1
pos 6
term SPECIAL
doc 0
freq 2
pos 0
pos 5
term xxx
doc 0
freq 1
pos 4
term xxx,SPECIAL
doc 0
freq 1
pos 4
term yyy
doc 0
freq 1
pos 9
{code}
In fact, adding a flattening filter doesn't actually change anything here: the
same index (and query) is produced.
> QueryBuilder.analyzeGraphPhrase does not handle gaps correctly
> --------------------------------------------------------------
>
> Key: LUCENE-7848
> URL: https://issues.apache.org/jira/browse/LUCENE-7848
> Project: Lucene - Core
> Issue Type: Bug
> Affects Versions: 6.5, 6.6
> Reporter: Jim Ferenczi
> Attachments: capture-3.png, LUCENE-7848.patch, LUCENE-7848.patch
>
>
> Position increments greater than 1 are ignored when the query builder creates
> a graph phrase query.
> Instead it should use SpanNearQuery.addGap for pos incr > 1.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]