I have a weird problem when doing a simple query using different JDK
versions with the same indexed data.
I have 2 docker images based on the official dockerfiles (
http://dockerfile.github.io/#/elasticsearch).
One image has jdk7u67 installed and one has jdk8u20 installed. Both use the
same index data (mounted as a volume) and have the same elasticsearch
installed (1.3.4)
Of course I only run one instance at a time
When I issue following search request I get different results (1 hit with
jdk7 and 5 hits with jdk8):
POST /INDEX/MyType/_search
{
"from": 0,
"size": 50,
"query": {
"multi_match": {
"query": "Flowering",
"fields": [
"name^3.5"
]
}
},
"post_filter": {
"bool": {
"must": [
{
"term": {
"candidategenelist.id": "20"
}
},
{
"term": {
"status": "Finished"
}
}
]
}
}
}
The “MyType” document has a mapping.
candidategenelist is a nested type:
candidategenelist: {
properties: {
id: {
type: integer
}
name: {
type: string
}
There are a couple of additional nested field types with a similar setup
(id: integer, name: string)
With jdk7u67 I get 1 hit:
Relevant explanation:
description”: “weight(study_.name:flowering in 74274) [PerFieldSimilarity],
result of:”,
With jdk8u20 I get 5 hits:
Relevant explanation:
“description”: “weight(candidategenelist.name:flowering in 74274)
[PerFieldSimilarity], result of:”,
“description”: “weight(candidategenelist.name:flowering in 6614)
[PerFieldSimilarity], result of:”,
“description”: “weight(candidategenelist.name:flowering in 56078)
[PerFieldSimilarity], result of:”,
“description”: “weight(candidategenelist.name:flowering in 6674)
[PerFieldSimilarity], result of:”,
“description”: “weight(candidategenelist.name:flowering in 6646)
[PerFieldSimilarity], result of:”,
So according to the explanation, the only difference is that with JDK7u67
it matches “name” in the nested study_ field whereas with JDK8u20 it
matches the “name” in candidategenelist.
I really don’t know why there are different query results when the only
difference is the JDK version?!
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/66af6726-d390-4f3f-8620-6ef2cff5397c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.