Ip range with subnet

Hi guys,

i've a question for you. I know that in ES is possible make a search 

query with ip range,
but is possible to put the subnet mask in this query?

Regards

Gabriele

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

The ip field type doesn't support a subnet, only just the ipv4 address.
What do you want to do with storing also the subnet? If your goal is to
store all ip addresses that fall into the specified subnet, then I think
this would be a nice addition to the ip field type.

On 8 September 2013 14:50, Gabriele Angeli g.angeli8214@gmail.com wrote:

Hi guys,

i've a question for you. I know that in ES is possible make a search

query with ip range,
but is possible to put the subnet mask in this query?

Regards

Gabriele

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
Met vriendelijke groet,

Martijn van Groningen

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hi,

On Sun, Sep 8, 2013 at 2:50 PM, Gabriele Angeli g.angeli8214@gmail.comwrote:

Hi guys,

i've a question for you. I know that in ES is possible make a search

query with ip range,
but is possible to put the subnet mask in this query?

I'm not sure to get your question, would you like the query parser to
translate an IP address and a subnet mask to a range query on ip addresses?

--
Adrien Grand

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

You can convert the ip from 4 octets to a number and store the number.
Then you can use a library (or write your own code) that gets the minimum
value and maximum value out of a subnet. Then you do a range query with
those numbers.

An IP address is just a number and a subnet is just a range.

On Sunday, September 8, 2013 8:50:47 AM UTC-4, Gabriele Angeli wrote:

Hi guys,

i've a question for you. I know that in ES is possible make a search 

query with ip range,
but is possible to put the subnet mask in this query?

Regards

Gabriele

--
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.
For more options, visit https://groups.google.com/groups/opt_out.