Hi Folks
I have a version mapping field data type with the property name "softwareVersion" in the Elasticsearch index. I have "softwareVersion" property values like Z100, Z300, 6.7, 7.0(3)I7(3), and 6.8.9
when I search with range query on "softwareVersion" field is giving results as this.
Query:
curl -X GET "localhost:9200/my_index/_search?pretty" -H 'Content-Type: application/json' -d '{"query": {"range": {"softwareVersion": {"lte": "8.0.7" } } } }'
result
the result contains data having version
6.7, 6.8.9
1.My question is why results are not contained with softwareVersion 7.0(3)I7(3) ?
Query:
curl -X GET "localhost:9200/my_index/_search?pretty" -H 'Content-Type: application/json' -d '{"query": {"range": {"softwareVersion": {"lte": "Z500" } } } }'
result
the result contains data having version
Z100, Z300, 6.7, 7.0(3)I7(3), and 6.8.9
but when I hit the below query the results are not as expected which are
Query:
curl -X GET "localhost:9200/my_index/_search?pretty" -H 'Content-Type: application/json' -d '{"query": {"range": {"softwareVersion": {"lte": "Z1000" } } } }'
result
the result contains data having version
Z100, 6.7, 7.0(3)I7(3), and 6.8.9
2.My question is ** why is Z300 not in the result of the above query?**
I am using the Elasticsearch 7.10.2 version and mapping of the "softwareVersion" field as below.
"softwareVersion": {
-
"type": "version"*
-
}*
Thanks & Regards
Krishna Jalla