Right, but I was more wondering about the use case of supporting a port in *some* fashion, in some type? Or is a string type the best type for holding an ip:port combination?
Thanks for the help :) On Thu, Jul 31, 2014 at 11:25 AM, David Pilato <[email protected]> wrote: > Yes. :80 should not be part of the IP. It's a port. > > -- > *David Pilato* | *Technical Advocate* | *Elasticsearch.com* > @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr > <https://twitter.com/elasticsearchfr> > > > Le 31 juillet 2014 à 16:56:29, Chris Neal ([email protected]) a > écrit: > > Hi Jorg, > > Here's an example: > > An ip field named as 'host' in mapping. > "host": { > "type" :"ip" > }, > > Then I add below to ES > POST /test_index/test > { > "host":"127.0.0.1:80 <http://127.0.0.1/>" > } > > ES returns this error > { > "error": "MapperParsingException[failed to parse [host]]; nested: > ElasticsearchIllegalArgumentException[failed to parse ip [127.0.0.1:80]]; > nested: NumberFormatException[For input string: \"1:80\"]; ", > "status": 400 > } > > If I only post IP without port like this > POST /test_index/test > { > "host":"127.0.0.1" > } > ES return success. > > Does that help explain the issue? > Thanks! > Chris > > > On Wed, Jul 30, 2014 at 4:35 PM, [email protected] < > [email protected]> wrote: > >> Can you give an example what you mean by IP ports? >> >> Transport protocols like TCP has ports, but IP (Internet addresses) is >> used to address hosts on a network. >> >> Jörg >> >> >> >> On Wed, Jul 30, 2014 at 11:02 PM, Chris Neal <[email protected]> >> wrote: >> >>> Hi all, >>> >>> I'm trying to use the ip type in ES, but my IPs also have ports. That >>> doesn't seem to be supported, which was a bit of a surprise! >>> >>> Does anyone know of a way to do this? Or does it sound like a good >>> feature to add support for to this type? >>> >>> Thanks! >>> Chris >>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/elasticsearch/CAND3DpgEWdxZcaFe1wmSWtjRfXqxvUC0vbq8bfE0mC7DusS_%2Bw%40mail.gmail.com >>> <https://groups.google.com/d/msgid/elasticsearch/CAND3DpgEWdxZcaFe1wmSWtjRfXqxvUC0vbq8bfE0mC7DusS_%2Bw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFKah6pkCWgKZYASM%3DfxyBq8waPQjyCBHj2aZaAeyiRwQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFKah6pkCWgKZYASM%3DfxyBq8waPQjyCBHj2aZaAeyiRwQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/CAND3DpjhbQunFsT8gi0bspkNDmj9u5kOyhohoAuEX20P0rcBkQ%40mail.gmail.com > <https://groups.google.com/d/msgid/elasticsearch/CAND3DpjhbQunFsT8gi0bspkNDmj9u5kOyhohoAuEX20P0rcBkQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/etPan.53da6df3.75c6c33a.f0d0%40MacBook-Air-de-David.local > <https://groups.google.com/d/msgid/elasticsearch/etPan.53da6df3.75c6c33a.f0d0%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAND3DpiAi7F3f6YE_QP5VjtPDzx-bxtmW1PbpwYWtU2KN02U%2Bg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
