Nikolay Khitrin created LUCENE-9377:
---------------------------------------

             Summary: Unknown query type SynonymQuery in 
ComplexPhraseQueryParser for boolean clauses
                 Key: LUCENE-9377
                 URL: https://issues.apache.org/jira/browse/LUCENE-9377
             Project: Lucene - Core
          Issue Type: Bug
    Affects Versions: 8.4
            Reporter: Nikolay Khitrin
         Attachments: LUCENE-9377.patch

Follow up for LUCENE-7695.

ComplexPhraseQueryParser fails with
{code:java}
Unknown query type:org.apache.lucene.search.SynonymQuery{code}
exception on queries like name: "(dog cat) something" if dog expands by 
SynonymFilter.

For now parser converts to BooleanQuery only top-level SynonymQueries, but not 
the nested ones.

Looks like it can be fixed by simple conversion in BQ clauses handling loop 
similar to LUCENE-7695.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to