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

WeightedSpanTermExtractor.extract() does not recognize SynonymQuery

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.1, 7.0
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              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