You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JVM version (java -version):
java version "1.8.0_192"
Java(TM) SE Runtime Environment (build 1.8.0_192-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode) OS version (uname -a if on a Unix-like system):
Darwin MacBook.local 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64 Description of the problem including expected versus actual behavior:
I have an index, index contains 1 document, I have elasticsearch query , query match the document and search api return the result. When I wrap the query with "constant_score" clause I got zero result. I reproduced issue on 6.8.0, 6.8.8, but on 7.6.2 everything is works as expected
My question is is any plan to fix it for 6.x version?
This is the documented behavior in 6.8.8 (see the important section called "Bool query in filter context"). Although, we agree that this behavior can be confusing, which is why we've decided to deprecate it in 6.x and to make the breaking change in 7.x: #35354
You should have a deprecation warning associated with the response in 6.8, that's how we warn users that a breaking change will occur in the next major version.
For these reasons, I hope you don't mind if I close the issue since you consider the new behavior as the right thing to do.
Elasticsearch version (
bin/elasticsearch --version
):Version: 6.8.8, Build: default/tar/2f4c224/2020-03-18T23:22:18.622755Z, JVM: 1.8.0_192
Plugins installed: []
JVM version (
java -version
):java version "1.8.0_192"
Java(TM) SE Runtime Environment (build 1.8.0_192-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode)
OS version (
uname -a
if on a Unix-like system):Darwin MacBook.local 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64
Description of the problem including expected versus actual behavior:
I have an index, index contains 1 document, I have elasticsearch query , query match the document and search api return the result. When I wrap the query with "constant_score" clause I got zero result. I reproduced issue on 6.8.0, 6.8.8, but on 7.6.2 everything is works as expected
My question is is any plan to fix it for 6.x version?
Steps to reproduce:
Query return the result
The difference is only "constant_score ... filter". The result is
Expected result is 1 document, the same as not wrapped with "constant_score" query.
This is only reproduced on es 6.8 especially 6.8.0 and 6.8.8, but on 7.6.2 wrapped with "constant_score" query.
Do you plan to fix for 6.8.8 ?
The text was updated successfully, but these errors were encountered: