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

Highlighting with GeoPointInBBoxQuery can result in Exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.5, 6.0, 7.0
    • Fix Version/s: 6.0.1, 6.1, 7.0
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Highlighter and GeoPointInBBoxQuery don't play well together. I wrote a test here that throws an exception which I think it should not:

      https://github.com/brwe/lucene-solr/commit/311f5527ffb6f3ef50e3f74b54456aa7b29d8898

      The problem seems to be that GeoPointInBBoxQuery calls rewrite with a reader that contains a text field (which we want to highlight) and therefore has the wrong encoding.

      This is from an elasticsearch issue: https://github.com/elastic/elasticsearch/issues/17537

        Attachments

        1. LUCENE-7293.patch
          7 kB
          Michael McCandless
        2. LUCENE-7293.patch
          8 kB
          Michael McCandless
        3. LUCENE-7293-revert+fix.patch
          9 kB
          Uwe Schindler
        4. LUCENE-7293-revert+fix.patch
          9 kB
          Uwe Schindler

          Activity

            People

            • Assignee:
              thetaphi Uwe Schindler
              Reporter:
              a2tirb britta weber
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: