Re: Storing/searching IPs

2015-04-17 Thread Attila Nagy
Hi, 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: 1. having arbitrary (well, 32 bit for v4 and 128 bit for v6) sized integers 2. searching for range inclusions The first can be sol

Re: Storing/searching IPs

2015-04-17 Thread Charlie Hull
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":

Re: Storing/searching IPs

2015-04-16 Thread joergpra...@gmail.com
It is possible to write a plugin with IP/subnet as a new field type. Jörg On Thu, Apr 16, 2015 at 9:34 PM, 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

Storing/searching IPs

2015-04-16 Thread Attila Nagy
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::