You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dawid Weiss (JIRA)" <ji...@apache.org> on 2017/05/23 15:28:04 UTC

[jira] [Commented] (LUCENE-7848) QueryBuilder.analyzeGraphPhrase does not handle gaps correctly

    [ https://issues.apache.org/jira/browse/LUCENE-7848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16021325#comment-16021325 ] 

Dawid Weiss commented on LUCENE-7848:
-------------------------------------

Thanks Jim. I agree the output from the filter looks odd too, but that's probably another issue. If you wish to reproduce, the Solr config I used was this:
{code}
      <filter class="solr.WordDelimiterGraphFilterFactory"
              preserveOriginal="1"
              generateWordParts="1"
              generateNumberParts="1"
              stemEnglishPossessive="1" />
{code}
I then reproduced the same from code as well (just pass the corresponding flags and use a whitespace tokenizer). I don't have access to that code right now, but I can attach it later if you can't reproduce it yourself.

> 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
>
> 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.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org