ip_range ipv4 to ipv6 term query unexpected results #124793
Labels
>bug
priority:normal
A label for assessing bug priority to be used by ES engineers
:Search Relevance/Search
Catch all for Search Relevance
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Elasticsearch Version
8.17.1
Installed Plugins
No response
Java Version
bundled
OS Version
Elastic Cloud
Problem Description
Term query of ip_range type field does not return expected documents.
When docs ip_range field contains "{"ip_range": { "gte": "0:0:0:0:0:0:0:0", "lte": "0:0:0:0:0:0:ffff:ffff" }}" or smaller "lte" values consisting of ipv6 strings, terms queries will not match a ipv4 string even when the value is in the range of the ip_range field.
Expectation would be to have both the IPv4 and IPv6 version of this query return all 9 documents
Steps to Reproduce
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: