I've attached the log to the gist
(ElasticSearch Highlighting IndexOutOfBoundsException · GitHub). Also double checked my
mapping and all those fields are stored. Could it be related to the fact
that some hits have the wrong encoding?
On Thursday, November 15, 2012 11:08:09 AM UTC+2, Eric Kazaki wrote:
Hi
I'm testing highlighting and getting very strange errors on a 3 nodes
cluster. Without highlighting the query runs fine and I get all the
documents I want without failures. When I add highlighting, the same query
returns with failures and this number is fluctuating even though the
documents haven't changed.The highlighting part of the query is:
"highlight": {
"number_of_fragments": 10,
"fragment_size": 10,
"pre_tags": [""],
"post_tags": [""],
"fields": {
"title": {"number_of_fragments": 0},
"body": {"number_of_fragments": 1}
}
}"body" isn't a stored field so it's being fetched from "_source" but
"title" is stored.Running the query with highlighting causes this:
- failed: 1
- failures: [
- {
- status: 500
- reason: RemoteTransportException[Failed to deserialize
response of type [org.elasticsearch.search.fetch.FetchSearchResult]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.search.fetch.FetchSearchResult]]; nested:
IndexOutOfBoundsException[Invalid combined index of 200554, maximum is
855];
}
]Repeating the same query:
- failed: 2
- failures: [
- {
- status: 500
- reason: RemoteTransportException[Failed to deserialize
response of type [org.elasticsearch.search.fetch.FetchSearchResult]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.search.fetch.FetchSearchResult]]; nested:
IndexOutOfBoundsException[Invalid combined index of 199753, maximum is
819];
}- {
- status: 500
- reason: RemoteTransportException[Failed to deserialize
response of type [org.elasticsearch.search.fetch.FetchSearchResult]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.search.fetch.FetchSearchResult]]; nested:
IndexOutOfBoundsException[Invalid combined index of 200584, maximum is
885];
}
]It's the same set of documents that are failing but I can't guess why!
--