Hey,

if there is an error, can you please open a github issue? However the
envelope shape expects you to set an upper left and lower right boundary.
Your coordinates more look like lower left and upper right (meaning you
might create quite a huge envelope acutally) - which obviously does not
matter for a polygon


--Alex


On Sat, Feb 22, 2014 at 11:14 AM, Nicolas THOMASSON <
nico.thomas...@gmail.com> wrote:

> Hello,
>
> I'm new to ES. Please forgive me if I'm asking something stupid.
>
> Is there a fundamental difference between indexing an envelope or indexing
> a polygon ?
>
> For example if I define the area as a envelope
>
> {
>       "frame":{
>         "type":"envelope",
>         "coordinates": [[3,4],[1,2]]
>       }
> }
>
> or as a polygon
>
> {
>       "frame":{
>         "type":"polygon",
>         "coordinates": [[[3,4],[3,2],[1,2],[1,4],[3,4]]]
>       }
> }
>
> As in my comprehension they both define the same area, should I be able to
> perform the same queries whatever the way I defined the area ? (Currently I
> have a search query that returns wrong results on the envelope and seems to
> perform well on the polygon.)
>
> Thanks for your help,
>
> Nicolas
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/a2fa0fd8-f9a9-435b-9d34-e603c7242d2f%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8usW%3Deam07T1xjFsTDOP1Yuay-DvVrkec2JzeQu0e3ng%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to