Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9377

Unknown query type SynonymQuery in ComplexPhraseQueryParser for boolean clauses

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.4
    • None
    • None
    • None
    • New, Patch Available

    Description

      Follow up for LUCENE-7695.

      ComplexPhraseQueryParser fails with

      Unknown query type:org.apache.lucene.search.SynonymQuery

      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.

      Attachments

        1. LUCENE-9377.patch
          2 kB
          Nikolay Khitrin

        Activity

          People

            Unassigned Unassigned
            khitrin Nikolay Khitrin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: