I would like to store IP addresses and subnets (one or more per document)
and I would like to search for them with exact or inclusion (does an IP is
in any of the subnets stored in the documents).
For example a document could have the following:
"ip": ["192.168.0.1","192.168.1.0/24","1000::/64"]
And searching for 192.168.0.1, 192.168.1.5 or 1000::1 should match it.
Are there any chances to have this sometime soon? And if not, what would be
the best hack (if any) to support this?
I would like to store IP addresses and subnets (one or more per document)
and I would like to search for them with exact or inclusion (does an IP is
in any of the subnets stored in the documents).
For example a document could have the following:
"ip": ["192.168.0.1","192.168.1.0/24","1000::/64"]
And searching for 192.168.0.1, 192.168.1.5 or 1000::1 should match it.
Are there any chances to have this sometime soon? And if not, what would
be the best hack (if any) to support this?
I would like to store IP addresses and subnets (one or more per
document) and I would like to search for them with exact or inclusion
(does an IP is in any of the subnets stored in the documents).
For example a document could have the following:
"ip": ["192.168.0.1","192.168.1.0/24","1000::/64"]
And searching for 192.168.0.1, 192.168.1.5 or 1000::1 should match it.
Are there any chances to have this sometime soon? And if not, what would
be the best hack (if any) to support this?
Those are the hacks I thought about, although I don't cleary see yet how
that would be useful for subnet searches and v4/v6.
Basically my problem boils down to:
having arbitrary (well, 32 bit for v4 and 128 bit for v6) sized integers
searching for range inclusions
The first can be solved with some maths, but how can I do the second?
I mean is it possible to store a document like this (or any equivalent with
nesting etc):
subnets: [[100,2000],[300:300],[5000,6000]]
so:
subnets: [[min1,max1],[min2,max2]...]
and have this document returned when I specify any number which is:
100>=<2000
300
5000>=<6000
?
április 17., péntek 10:13:08 UTC+2 időpontban Charlie Hull a
következőt írta:
On 16/04/2015 20:34, Attila Nagy wrote:
Hi,
I would like to store IP addresses and subnets (one or more per
document) and I would like to search for them with exact or inclusion
(does an IP is in any of the subnets stored in the documents).
For example a document could have the following:
"ip": ["192.168.0.1","192.168.1.0/24","1000::/64"]
And searching for 192.168.0.1, 192.168.1.5 or 1000::1 should match it.
Are there any chances to have this sometime soon? And if not, what would
be the best hack (if any) to support this?
--
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 elasticsearc...@googlegroups.com <javascript:>
<mailto:elasticsearch+unsubscribe@googlegroups.com <javascript:>>.
To view this discussion on the web visit
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.