elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
876 stars 24.81k forks source link

Highlighting error "Less than 2 subSpans.size()" due to LUCENE-7231 #19844

Closed thomas11 closed 8 years ago

thomas11 commented 8 years ago

Elasticsearch version: 2.3.3

Plugins installed: [analysis-kuromoji, analysis-phonetic, analysis-smartcn, analysis-stempel]

JVM version: 1.8.0_u92

For some search requests with highlighting, we run into https://issues.apache.org/jira/browse/LUCENE-7231. The Lucene issue has a repro.

This bug has been fixed in Lucene 5.5.2. Any chance of Elasticsearch upgrading in the next minor release?

Thanks

jasontedor commented 8 years ago

Closed by #19496. Lucene 5.5.2 will be included in the forthcoming 2.4.0 release of Elasticsearch.

thomas11 commented 8 years ago

Thanks for the prompt response @jasontedor! Since this bug breaks functionality on our side I'd like to know when to expect 2.4.0, roughly. Any idea?

naag commented 8 years ago

This still happens on release 5.0.0-alpha5:

{
name: "ekJiZIT",
cluster_name: "elasticsearch",
version: {
number: "5.0.0-alpha5",
build_hash: "d327dd4",
build_date: "2016-08-04T08:59:39.568Z",
build_snapshot: false,
lucene_version: "6.1.0"
},
tagline: "You Know, for Search"
}

JVM version is:

# java -version
openjdk version "1.8.0_102"
OpenJDK Runtime Environment (build 1.8.0_102-8u102-b14.1-1~bpo8+1-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)

Does ES 5.0.0-alpha5 already include the Lucene fix? Thanks!

jasontedor commented 8 years ago

Does ES 5.0.0-alpha5 already include the Lucene fix?

Yes.

thomas11 commented 8 years ago

There is a related bug that results in the same error when using MultiPhraseQuery. It's fixed in the latest Lucene 6.2.1, but not in 6.1.

https://issues.apache.org/jira/plugins/servlet/mobile#issue/LUCENE-7417

On Oct 5, 2016 9:31 AM, "Jason Tedor" notifications@github.com wrote:

Does ES 5.0.0-alpha5 already include the Lucene fix?

Yes.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/elastic/elasticsearch/issues/19844#issuecomment-251709468, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAvKsaBfkvJxnLvXylXrjtlJICCImXhks5qw8K-gaJpZM4JeGEV .