You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jim Ferenczi (JIRA)" <ji...@apache.org> on 2018/01/24 10:44:00 UTC

[jira] [Created] (LUCENE-8137) GraphTokenStreamFiniteStrings does not handle position inc > 1 in multi-word synoyms

Jim Ferenczi created LUCENE-8137:
------------------------------------

             Summary: GraphTokenStreamFiniteStrings does not handle position inc > 1 in multi-word synoyms
                 Key: LUCENE-8137
                 URL: https://issues.apache.org/jira/browse/LUCENE-8137
             Project: Lucene - Core
          Issue Type: Bug
    Affects Versions: 7.2.1, master (8.0)
            Reporter: Jim Ferenczi


The automaton built for graph queries that contain multiple multi-word synonyms does not handle gaps if they appear in the middle of a multi-word synonym. In such case the token next to the gap is considered as part of the multi-word synonym. 

Stop words that appear before or after multi-word synonyms are handled correctly in the current version but the synonym rule "part of speech, pos" for instance does not create the expected query if "of" is removed by a filter that is set after the synonym_graph.  One solution would be to reuse TokenStreamToAutomaton (with minor changes to add the ability to create token transitions rather than chars) which preserves gaps (as a transition) in the produced automaton.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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