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

WeightedSpanTermExtractor.extract() does not recognize SynonymQuery

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0
    • 6.1, 7.0
    • modules/highlighter
    • None
    • New

    Description

      Short description:

      In WeightedSpanTermExtractor.extract(...) method there is a long list of supported Queries. There is no SynonymQuery which leads to extractUnknownQuery() that does nothing. It would be really nice to have SynonymQuery covered as well.

      Long description:

      I'm trying to highlight an external text using a Highlighter. The query is created by QueryParser. If the created query is simple it works like a charm. The problem is when parsed query contains SynonymQuery – it happens, when stemmer returns multiple stems, which is not uncommon for Polish language.

      Btw. this is my first jira issue.

      Attachments

        1. LUCENE-7286.patch
          4 kB
          Adrien Grand

        Activity

          People

            Unassigned Unassigned
            zasnuty Piotr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified