Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid shift value (xx) in prefixCoded bytes (is encoded value really a geo point?) #17537

Closed
jaksmid opened this issue Apr 5, 2016 · 42 comments · Fixed by #18183 or #18495
Closed

Invalid shift value (xx) in prefixCoded bytes (is encoded value really a geo point?) #17537

jaksmid opened this issue Apr 5, 2016 · 42 comments · Fixed by #18183 or #18495
Assignees
Labels
>bug :Search Relevance/Highlighting How a query matched a document Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v2.3.3

Comments

@jaksmid
Copy link

jaksmid commented Apr 5, 2016

Hi guys,

we have upgraded ElasticSearch from 2.3.0 and reindexed our geolocations so the latitude and longitude are stored separately. We have noticed that some of our visualisation started to fail after we add a filter based on geolocation rectangle. However, map visualisation are working just fine. The problem occurs when we include actual documents. In this case, we get some failed shards (usually 1 out of 5) and error: Invalid shift value (xx) in prefixCoded bytes (is encoded value really a geo point?).

Details:
Our geolocation index is based on:

"dynamic_templates": [{
....
{
        "ner_geo": {
          "mapping": {
            "type": "geo_point",
            "lat_lon": true
          },
          "path_match": "*.coordinates"
        }
      }],

The ok query with the error is as follows. If we change the query size to 0 (map visualizations example), the query completes without problem.

{
  "size": 100,
  "aggs": {
    "2": {
      "geohash_grid": {
        "field": "authors.affiliation.coordinates",
        "precision": 2
      }
    }
  },
  "query": {
    "filtered": {
      "query": {
        "query_string": {
          "analyze_wildcard": true,
          "query": "*"
        }
      },
      "filter": {
        "bool": {
          "must": [
            {
              "geo_bounding_box": {
                "authors.affiliation.coordinates": {
                  "top_left": {
                    "lat": 61.10078883158897,
                    "lon": -170.15625
                  },
                  "bottom_right": {
                    "lat": -64.92354174306496,
                    "lon": 118.47656249999999
                  }
                }
              }
            }
          ],
          "must_not": []
        }
      }
    }
  },
  "highlight": {
    "pre_tags": [
      "@kibana-highlighted-field@"
    ],
    "post_tags": [
      "@/kibana-highlighted-field@"
    ],
    "fields": {
      "*": {}
    },
    "require_field_match": false,
    "fragment_size": 2147483647
  }
}

Elasticsearch version**: 2.3.0
OS version**: Elasticsearch docker image with head plugin, marvel and big desk installed

Thank you for your help,
regards,
Jakub Smid

@clintongormley
Copy link

@jaksmid could you provide some documents and the stack trace that is produced when you see this exception please?

@clintongormley clintongormley added >bug :Analytics/Geo Indexing, search aggregations of geo points and shapes v2.3.2 labels Apr 6, 2016
@clintongormley
Copy link

@jpountz given that this only happens with size > 0, I'm wondering if this highlighting trying to highlight the geo field? Perhaps with no documents on a particular shard?

/cc @nknize

@rmuir
Copy link
Contributor

rmuir commented Apr 7, 2016

I can reproduce something that looks just like this with a lucene test if you apply the patch on https://issues.apache.org/jira/browse/LUCENE-7185

I suspect it may happen with extreme values such as latitude = 90 or longitude = 180 which are used much more in tests with the patch. See seed:

  [junit4] Suite: org.apache.lucene.spatial.geopoint.search.TestGeoPointQuery
   [junit4] IGNOR/A 0.01s J1 | TestGeoPointQuery.testRandomBig
   [junit4]    > Assumption #1: 'nightly' test group is disabled (@Nightly())
   [junit4] IGNOR/A 0.00s J1 | TestGeoPointQuery.testRandomDistanceHuge
   [junit4]    > Assumption #1: 'nightly' test group is disabled (@Nightly())
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestGeoPointQuery -Dtests.method=testAllLonEqual -Dtests.seed=4ABB96AB44F4796E -Dtests.locale=id-ID -Dtests.timezone=Pacific/Fakaofo -Dtests.asserts=true -Dtests.file.encoding=US-ASCII
   [junit4] ERROR   0.35s J1 | TestGeoPointQuery.testAllLonEqual <<<
   [junit4]    > Throwable #1: java.lang.IllegalArgumentException: Illegal shift value, must be 32..63; got shift=0
   [junit4]    >    at __randomizedtesting.SeedInfo.seed([4ABB96AB44F4796E:DBB16756B45E397A]:0)
   [junit4]    >    at org.apache.lucene.spatial.util.GeoEncodingUtils.geoCodedToPrefixCodedBytes(GeoEncodingUtils.java:109)
   [junit4]    >    at org.apache.lucene.spatial.util.GeoEncodingUtils.geoCodedToPrefixCoded(GeoEncodingUtils.java:89)
   [junit4]    >    at org.apache.lucene.spatial.geopoint.search.GeoPointPrefixTermsEnum$Range.fillBytesRef(GeoPointPrefixTermsEnum.java:236)
   [junit4]    >    at org.apache.lucene.spatial.geopoint.search.GeoPointTermsEnum.nextRange(GeoPointTermsEnum.java:71)
   [junit4]    >    at org.apache.lucene.spatial.geopoint.search.GeoPointPrefixTermsEnum.nextRange(GeoPointPrefixTermsEnum.java:171)
   [junit4]    >    at org.apache.lucene.spatial.geopoint.search.GeoPointPrefixTermsEnum.nextSeekTerm(GeoPointPrefixTermsEnum.java:190)
   [junit4]    >    at org.apache.lucene.index.FilteredTermsEnum.next(FilteredTermsEnum.java:212)
   [junit4]    >    at org.apache.lucene.spatial.geopoint.search.GeoPointTermQueryConstantScoreWrapper$1.scorer(GeoPointTermQueryConstantScoreWrapper.java:110)
   [junit4]    >    at org.apache.lucene.search.Weight.bulkScorer(Weight.java:135)
   [junit4]    >    at org.apache.lucene.search.LRUQueryCache$CachingWrapperWeight.bulkScorer(LRUQueryCache.java:644)
   [junit4]    >    at org.apache.lucene.search.AssertingWeight.bulkScorer(AssertingWeight.java:68)
   [junit4]    >    at org.apache.lucene.search.BooleanWeight.optionalBulkScorer(BooleanWeight.java:231)
   [junit4]    >    at org.apache.lucene.search.BooleanWeight.booleanScorer(BooleanWeight.java:297)
   [junit4]    >    at org.apache.lucene.search.BooleanWeight.bulkScorer(BooleanWeight.java:364)
   [junit4]    >    at org.apache.lucene.search.LRUQueryCache$CachingWrapperWeight.bulkScorer(LRUQueryCache.java:644)
   [junit4]    >    at org.apache.lucene.search.AssertingWeight.bulkScorer(AssertingWeight.java:68)
   [junit4]    >    at org.apache.lucene.search.AssertingWeight.bulkScorer(AssertingWeight.java:68)
   [junit4]    >    at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:666)
   [junit4]    >    at org.apache.lucene.search.AssertingIndexSearcher.search(AssertingIndexSearcher.java:91)
   [junit4]    >    at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)
   [junit4]    >    at org.apache.lucene.spatial.util.BaseGeoPointTestCase.verifyRandomRectangles(BaseGeoPointTestCase.java:835)
   [junit4]    >    at org.apache.lucene.spatial.util.BaseGeoPointTestCase.verify(BaseGeoPointTestCase.java:763)
   [junit4]    >    at org.apache.lucene.spatial.util.BaseGeoPointTestCase.testAllLonEqual(BaseGeoPointTestCase.java:495)

@jaksmid
Copy link
Author

jaksmid commented Apr 7, 2016

Hi @clintongormley, thank you for your message.

The stack trace is as follows:
RemoteTransportException[[elasticsearch_4][172.17.0.2:9300][indices:data/read/search[phase/fetch/id]]]; nested: FetchPhaseExecutionException[Fetch Failed [Failed to highlight field [cyberdyne_metadata.ner.mitie.model.DISEASE.tag]]]; nested: NumberFormatException[Invalid shift value (65) in prefixCoded bytes (is encoded value really a geo point?)]; Caused by: FetchPhaseExecutionException[Fetch Failed [Failed to highlight field [cyberdyne_metadata.ner.mitie.model.DISEASE.tag]]]; nested: NumberFormatException[Invalid shift value (65) in prefixCoded bytes (is encoded value really a geo point?)]; at org.elasticsearch.search.highlight.PlainHighlighter.highlight(PlainHighlighter.java:123) at org.elasticsearch.search.highlight.HighlightPhase.hitExecute(HighlightPhase.java:126) at org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:188) at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:592) at org.elasticsearch.search.action.SearchServiceTransportAction$FetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:408) at org.elasticsearch.search.action.SearchServiceTransportAction$FetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:405) at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33) at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:75) at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:300) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NumberFormatException: Invalid shift value (65) in prefixCoded bytes (is encoded value really a geo point?) at org.apache.lucene.spatial.util.GeoEncodingUtils.getPrefixCodedShift(GeoEncodingUtils.java:134) at org.apache.lucene.spatial.geopoint.search.GeoPointPrefixTermsEnum.accept(GeoPointPrefixTermsEnum.java:219) at org.apache.lucene.index.FilteredTermsEnum.next(FilteredTermsEnum.java:232) at org.apache.lucene.search.TermCollectingRewrite.collectTerms(TermCollectingRewrite.java:67) at org.apache.lucene.search.ScoringRewrite.rewrite(ScoringRewrite.java:108) at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:220) at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:227) at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:113) at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:113) at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.getWeightedSpanTerms(WeightedSpanTermExtractor.java:505) at org.apache.lucene.search.highlight.QueryScorer.initExtractor(QueryScorer.java:218) at org.apache.lucene.search.highlight.QueryScorer.init(QueryScorer.java:186) at org.apache.lucene.search.highlight.Highlighter.getBestTextFragments(Highlighter.java:195) at org.elasticsearch.search.highlight.PlainHighlighter.highlight(PlainHighlighter.java:108) ... 12 more

The field cyberdyne_metadata.ner.mitie.model.DISEASE.tag should not be a geopoint according to the dynamic template.

@jpountz
Copy link
Contributor

jpountz commented Apr 7, 2016

@rmuir oh, good catch
@clintongormley The stack trace indeed suggests that the issue is with highlighting on the geo field. Regardless of this bug, I wonder that we should fail early when highlighting on anything but text fields and/or exclude non-text fields from wildcard matching.

@dadoonet
Copy link
Member

dadoonet commented Apr 7, 2016

I wonder that we should fail early when highlighting on anything but text fields and/or exclude non-text fields from wildcard matching.

+1 to fail early if the user explicitly defined a non text field to highlight on and exclude non text fields when using wildcards

@rodgermoore
Copy link

I was running into this bug during a live demo... Yes I know, I've should have tested all demo scenario's after updating ES 😬 . Anyway, +1 for fixing this!

@fclotet
Copy link

fclotet commented Apr 18, 2016

-I´m having the same error. It's happends with doc having location and trying to use
"highlight": {... "require_field_match": false ...}

thanks!

@dellis23
Copy link

dellis23 commented May 3, 2016

I'm unclear as to what exactly is going on here, but I'm running into the same issue. I'm attempting to do a geo bounding box in Kibana while viewing the results in the Discover tab. Disabling highlighting in Kibana fixes the issue, but I would actually like to keep highlighting enabled, since it's super useful otherwise.

It sounds from what others are saying that this should fail when querying on any non-string field, but I am not getting the same failure on numeric fields. Is it just an issue with geoip fields? I suppose another nice thing would be to explicitly allow for configuration of which fields should be highlighted in Kibana.

@clintongormley clintongormley added the help wanted adoptme label May 3, 2016
@vingrad
Copy link

vingrad commented May 3, 2016

Please fix this issue.

@brwe brwe self-assigned this May 3, 2016
brwe added a commit to brwe/elasticsearch that referenced this issue May 4, 2016
@brwe
Copy link
Contributor

brwe commented May 4, 2016

I wrote two tests so that everyone can reproduce what happens easily: brwe@ffa2429

In brief:
The plain highlighter tries to highlight whatever the BBQuery provides as terms in the text "60,120" if that is how the geo_point was indexed (if the point was indexed with {"lat": 60, "lon": 120} nothing will happen because we cannot even extract anything from the source). The terms in the text are provided to Lucene as a token steam with a keyword analyzer.
In Lucene, this token stream is converted this via a longish call stack into a terms enum. But this terms enum is pulled from the query that contains the terms that are to be highlighted. In this case we call GeoPointMultiTermQuery.getTermsEnum(terms) which wraps the term in a GeoPointTermsEnum. This enum tries to convert a prefix coded geo term back to something else but because it is really just the string "60,120" it throws the exception we see.

I am unsure yet how a correct fix would look like but do wonder why we try highlingting on numeric and geo fields at all? If anyone has an opinion let me know.

@brwe
Copy link
Contributor

brwe commented May 4, 2016

I missed @jpountz comment:

Regardless of this bug, I wonder that we should fail early when highlighting on anything but text fields and/or exclude non-text fields from wildcard matching.

I agree. Will make a pr for that.

@clintongormley
Copy link

@brwe you did something similar before: #11364 - i would have thought that that PR should have fixed this issue?

@clintongormley clintongormley added :Search Relevance/Highlighting How a query matched a document and removed :Analytics/Geo Indexing, search aggregations of geo points and shapes labels May 5, 2016
@brwe
Copy link
Contributor

brwe commented May 5, 2016

@clintongormley Yes you are right. #11364 only addresses problems one gets when the way text is indexed is not compatible with the highlighter used. I do not remember why I did not exclude numeric fields then.

@brwe brwe removed the help wanted adoptme label May 6, 2016
brwe added a commit to brwe/elasticsearch that referenced this issue May 6, 2016
… in fieldname

We should prevent highlighting if a field is anything but a text or keyword field.
However, someone might implement a custom field type that has text and still want to
highlight on that. We cannot know in advance if the highlighter will be able to
highlight such a field and so we do the following:
If the field is only highlighted because the field matches a wildcard we assume
it was a mistake and do not process it.
If the field was explicitly given we assume that whoever issued the query knew
what they were doing and try to highlight anyway.

closes elastic#17537
brwe added a commit to brwe/elasticsearch that referenced this issue May 20, 2016
Geo queries and plain highlighter do not seem to work well
together (https://issues.apache.org/jira/browse/LUCENE-7293)
so we need to skip all geo related queries when we highlight.

closes elastic#17537
brwe added a commit that referenced this issue May 25, 2016
Geo queries and plain highlighter do not seem to work well
together (https://issues.apache.org/jira/browse/LUCENE-7293)
so we need to skip all geo related queries when we highlight.

closes #17537
brwe added a commit that referenced this issue May 25, 2016
Geo queries and plain highlighter do not seem to work well
together (https://issues.apache.org/jira/browse/LUCENE-7293)
so we need to skip all geo related queries when we highlight.

closes #17537
@ajayar
Copy link

ajayar commented Sep 6, 2016

Hi @brwe , I am using ES 2.4.0, and the query is of below nature, and I still get that error. So, is this issue still open?

{
  "query": {
      "function_score": {
        "query": { 
          "bool" : {
            "filter" : [  {"geo_bounding_box" : { ... }  ]
          }
        },
        "functions": [  { "gauss": { "Location_GP": { ... } }  } ]
      }
    },
    "highlight": { }
}

@brwe
Copy link
Contributor

brwe commented Sep 6, 2016

@ajayar I cannot reproduce the failure on 2.4.1 Could you paste the whole query including the actual geo points and the full error message please? Stacktrace should be in the elasticsearch log.

@ajayar
Copy link

ajayar commented Sep 10, 2016

Sorry for the delay. Please check the details below:


DELETE test_idx
PUT test_idx
{
  "mappings" : {
    "jobs" : {
      "_all": {"enabled":false},
      "properties"  : {
        "jd" : {"type":"string"},
        "loc" : {"type":"geo_point", "lat_lon": true}
      }
    }
  }
}

POST test_idx/jobs/1
{
  "jd" : "some आवश्यकता है- आर्य समाज अनाथालय, 68 सिविल लाइन्स, बरेली को एक पुरूष रस text ",
  "loc" : "12.934059 ,77.610741"
}

GET test_idx/jobs/_search
{
  "query": {
      "function_score": {
        "query": {
            "bool" : {
              "filter" : [
                {"geo_bounding_box" : { "loc" : { "top" : 48.934059, "left" : 41.610741, "bottom" : -23.065941, "right" : 113.610741 }}}
              ]
            }
        },
        "functions": [
          {
            "gauss": {
              "loc": {
                "origin": "12.934059 ,77.610741",
                "scale": "4000km",
                "decay": 0.7
              }
            }
          }
        ]
      }
  },
  "highlight": {
    "fields": {
      "jd": {}
    }
  }
}


---- Logs ---
RemoteTransportException[[Grizzly][127.0.0.1:9300][indices:data/read/search[phase/fetch/id]]]; nested: FetchPhaseExecutionException[Fetch Failed [Failed to highlight field [jd]]]; nested: NumberFormatException[Invalid shift value (-92) in prefixCoded bytes (is encoded value really a geo point?)];
Caused by: FetchPhaseExecutionException[Fetch Failed [Failed to highlight field [jd]]]; nested: NumberFormatException[Invalid shift value (-92) in prefixCoded bytes (is encoded value really a geo point?)];
    at org.elasticsearch.search.highlight.PlainHighlighter.highlight(PlainHighlighter.java:123)
    at org.elasticsearch.search.highlight.HighlightPhase.hitExecute(HighlightPhase.java:140)
    at org.elasticsearch.search.fetch.FetchPhase.execute(FetchPhase.java:188)
    at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:592)
    at org.elasticsearch.search.action.SearchServiceTransportAction$FetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:408)
    at org.elasticsearch.search.action.SearchServiceTransportAction$FetchByIdTransportHandler.messageReceived(SearchServiceTransportAction.java:405)
    at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33)
    at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:75)
    at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:376)
    at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NumberFormatException: Invalid shift value (-92) in prefixCoded bytes (is encoded value really a geo point?)
    at org.apache.lucene.spatial.util.GeoEncodingUtils.getPrefixCodedShift(GeoEncodingUtils.java:134)
    at org.apache.lucene.spatial.geopoint.search.GeoPointPrefixTermsEnum.accept(GeoPointPrefixTermsEnum.java:219)
    at org.apache.lucene.index.FilteredTermsEnum.next(FilteredTermsEnum.java:232)
    at org.apache.lucene.search.TermCollectingRewrite.collectTerms(TermCollectingRewrite.java:67)
    at org.apache.lucene.search.ScoringRewrite.rewrite(ScoringRewrite.java:108)
    at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:220)
    at org.elasticsearch.search.highlight.CustomQueryScorer$CustomWeightedSpanTermExtractor.extract(CustomQueryScorer.java:95)
    at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:146)
    at org.elasticsearch.search.highlight.CustomQueryScorer$CustomWeightedSpanTermExtractor.extract(CustomQueryScorer.java:95)
    at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:109)
    at org.elasticsearch.search.highlight.CustomQueryScorer$CustomWeightedSpanTermExtractor.extract(CustomQueryScorer.java:95)
    at org.elasticsearch.search.highlight.CustomQueryScorer$CustomWeightedSpanTermExtractor.extractUnknownQuery(CustomQueryScorer.java:82)
    at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:230)
    at org.elasticsearch.search.highlight.CustomQueryScorer$CustomWeightedSpanTermExtractor.extract(CustomQueryScorer.java:95)
    at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:227)
    at org.elasticsearch.search.highlight.CustomQueryScorer$CustomWeightedSpanTermExtractor.extract(CustomQueryScorer.java:95)
    at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(WeightedSpanTermExtractor.java:227)
    at org.elasticsearch.search.highlight.CustomQueryScorer$CustomWeightedSpanTermExtractor.extract(CustomQueryScorer.java:95)
    at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.getWeightedSpanTerms(WeightedSpanTermExtractor.java:505)
    at org.apache.lucene.search.highlight.QueryScorer.initExtractor(QueryScorer.java:218)
    at org.apache.lucene.search.highlight.QueryScorer.init(QueryScorer.java:186)
    at org.apache.lucene.search.highlight.Highlighter.getBestTextFragments(Highlighter.java:195)
    at org.elasticsearch.search.highlight.PlainHighlighter.highlight(PlainHighlighter.java:108)
    ... 12 more

`

@brwe
Copy link
Contributor

brwe commented Sep 12, 2016

@ajayar Thanks a lot for the example, that was very helpful. The example works fine for me on 2.4 but on 2.3.5 (where this error should not occur either) the query fails for me. I will open another pr to address this.
However, we must still figure out why you get this error on 2.4. too.
Can you run the example again and then also add the output of
GET test_idx/_settings?human

@brwe brwe reopened this Sep 12, 2016
brwe added a commit to brwe/elasticsearch that referenced this issue Sep 12, 2016
We skip GeoPointInBBoxQuery already but not when it was rewritten
it appears as GeoPointInBBoxQuery and needs to be skipped as well.

see elastic#17537
brwe added a commit that referenced this issue Sep 13, 2016
* skip GeoPointMultiTermQuery when highlighting

We skip GeoPointInBBoxQuery already but not when it was rewritten
it appears as GeoPointInBBoxQuery and needs to be skipped as well.

see #17537
brwe added a commit that referenced this issue Sep 13, 2016
* skip GeoPointMultiTermQuery when highlighting

We skip GeoPointInBBoxQuery already but not when it was rewritten
it appears as GeoPointInBBoxQuery and needs to be skipped as well.

see #17537
@ajayar
Copy link

ajayar commented Sep 16, 2016

Hi @brwe thanks a lot for looking into it. Please check the output of the query

GET test_idx/_settings?human
{
  "test_idx": {
    "settings": {
      "index": {
        "creation_date": "1474005889110",
        "uuid": "a2pkzpAnSk-o-c-ueXWHgQ",
        "creation_date_string": "2016-09-16T06:04:49.110Z",
        "number_of_replicas": "1",
        "number_of_shards": "5",
        "version": {
          "created_string": "2.3.4",
          "created": "2030499"
        }
      }
    }
  }
}

@s1monw
Copy link
Contributor

s1monw commented Sep 16, 2016

@ajangus you are saying you are using 2.4 but this index is created with 2.3.4 maybe you are missing something on your end?

@ajayar
Copy link

ajayar commented Sep 16, 2016

I too noticed the version, but am not sure why it is so. I am sure that I am running 2.4. But, I will recheck the same on a different machine and come back on this.

@s1monw
Copy link
Contributor

s1monw commented Sep 16, 2016

@ajayar I am sure you are not creating this index with a cluster that has only 2.4 nodes. if you have a single 2.3.4 node in the cluster this will happen. Maybe you can just paste the output of GET localhost:9200/ (the main action) and the node stats

@ajayar
Copy link

ajayar commented Sep 18, 2016

Apologies. Yes, you are right it was indeed pointing to 2.3.4. Had my scripts pointing to a wrong node. I don't see the issue happening on 2.4

@s1monw
Copy link
Contributor

s1monw commented Sep 19, 2016

@brwe I think we can close this again! thanks for reporting back @ajayar

@brwe
Copy link
Contributor

brwe commented Sep 19, 2016

yes. @ajayar thanks again for the detailed report!

@brwe brwe closed this as completed Sep 19, 2016
fixmebot bot referenced this issue in VectorXz/elasticsearch Apr 22, 2021
fixmebot bot referenced this issue in VectorXz/elasticsearch May 28, 2021
fixmebot bot referenced this issue in VectorXz/elasticsearch Aug 4, 2021
@javanna javanna added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search Relevance/Highlighting How a query matched a document Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v2.3.3
Projects
None yet