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

WeightedSpanTermExtractor.extract() does not recognize SynonymQuery

    Details

    • 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.

        Activity

        Hide
        jpountz Adrien Grand added a comment -

        Here is a patch. I think this bug may hit many users so I would like to include it in 6.1.

        Show
        jpountz Adrien Grand added a comment - Here is a patch. I think this bug may hit many users so I would like to include it in 6.1.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 5e87c2b31fb0cd0d2c99986fdd79abe2544a04c2 in lucene-solr's branch refs/heads/branch_6_1 from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5e87c2b ]

        LUCENE-7286: Added support for highlighting SynonymQuery.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 5e87c2b31fb0cd0d2c99986fdd79abe2544a04c2 in lucene-solr's branch refs/heads/branch_6_1 from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5e87c2b ] LUCENE-7286 : Added support for highlighting SynonymQuery.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit ef707f05ae590347e08bb6f92cc5d62854481a1b in lucene-solr's branch refs/heads/branch_6x from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=ef707f0 ]

        LUCENE-7286: Added support for highlighting SynonymQuery.

        Show
        jira-bot ASF subversion and git services added a comment - Commit ef707f05ae590347e08bb6f92cc5d62854481a1b in lucene-solr's branch refs/heads/branch_6x from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=ef707f0 ] LUCENE-7286 : Added support for highlighting SynonymQuery.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit e418bd0eb33eb058c0403dfcdaef8733bd6f4fc1 in lucene-solr's branch refs/heads/master from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e418bd0 ]

        LUCENE-7286: Added support for highlighting SynonymQuery.

        Show
        jira-bot ASF subversion and git services added a comment - Commit e418bd0eb33eb058c0403dfcdaef8733bd6f4fc1 in lucene-solr's branch refs/heads/master from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e418bd0 ] LUCENE-7286 : Added support for highlighting SynonymQuery.

          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

                Development