Why geo_distance is filtering in elliptical shape?


(Ondřej Bílka) #1

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing something
wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left and
right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!


(Igor Motov) #2

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing something
wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left and
right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!


(Ondřej Bílka) #3

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing something
wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left and
right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!


(Shay Banon) #4

Can you set optimize_bbox to "none" and see if it makes a difference while
using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing something
wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left
and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!


(Ondřej Bílka) #5

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference while
using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing something
wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left
and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!


(Shay Banon) #6

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left
and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!


(Ondřej Bílka) #7

Yes, very strange. :slight_smile:
I don't know what to recreate, I'm attaching basic filter query and mapping
in Elastica plugin, I'm using Elastica only to create document.
For obtaining data I use PHP curl functions.
Database has about 150000 items. There is nothing more special about it.

Many thanks!

Dne úterý, 17. dubna 2012 15:58:15 UTC+2 kimchy napsal(a):

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left
and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!

Dne úterý, 17. dubna 2012 15:58:15 UTC+2 kimchy napsal(a):

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left
and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!

Dne úterý, 17. dubna 2012 15:58:15 UTC+2 kimchy napsal(a):

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left
and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!

Dne úterý, 17. dubna 2012 15:58:15 UTC+2 kimchy napsal(a):

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left
and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!

Dne úterý, 17. dubna 2012 15:58:15 UTC+2 kimchy napsal(a):

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the nearest
objects around some geo_point in custom distance and show them on Google
Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both left
and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!


(Shay Banon) #8

It would be great to have data set and sample search request that shows the
problem.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Yes, very strange. :slight_smile:
I don't know what to recreate, I'm attaching basic filter query and
mapping in Elastica plugin, I'm using Elastica only to create document.
For obtaining data I use PHP curl functions.
Database has about 150000 items. There is nothing more special about it.

https://gist.github.com/2406859

Many thanks!

Dne úterý, 17. dubna 2012 15:58:15 UTC+2 kimchy napsal(a):

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the
nearest objects around some geo_point in custom distance and show them on
Google Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both
left and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!

Dne úterý, 17. dubna 2012 15:58:15 UTC+2 kimchy napsal(a):

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the
nearest objects around some geo_point in custom distance and show them on
Google Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both
left and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!

Dne úterý, 17. dubna 2012 15:58:15 UTC+2 kimchy napsal(a):

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the
nearest objects around some geo_point in custom distance and show them on
Google Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both
left and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!

Dne úterý, 17. dubna 2012 15:58:15 UTC+2 kimchy napsal(a):

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the
nearest objects around some geo_point in custom distance and show them on
Google Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both
left and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!

Dne úterý, 17. dubna 2012 15:58:15 UTC+2 kimchy napsal(a):

Then thats strange..., can you possibly create a gist recreation where it
shows the problem?

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Thanks for your reply, I set it but it is still the same, no difference.
I think that with the zoom I use is distance_type not so important.

Dne úterý, 17. dubna 2012 15:11:16 UTC+2 kimchy napsal(a):

Can you set optimize_bbox to "none" and see if it makes a difference
while using arc distance type.

2012/4/17 Ondřej Bílka ondrej.bilka@gmail.com

Hi, I' ve tried both with no effect.

Dne pondělí, 16. dubna 2012 18:26:17 UTC+2 Igor Motov napsal(a):

Are you using "plane" distance_type or "arc" distance_type?

On Monday, April 16, 2012 12:11:59 PM UTC-4, Ondřej Bílka wrote:

Hello,
I have an ES database of GEO objects and I need to search the
nearest objects around some geo_point in custom distance and show them on
Google Map.
I'm using geo_distance filter, everything works perfect, but I have
recognized, that the filter is not filtering in circullar-like distance (in
exact X km radius), but in some elliptical shape. For better understanding
I've attached screenshots. I'd like to create google circle on the map to
show the border of distance, but now it is not accurate because the
ellipse.
I don't know the reason, why it is like that, or if I'm doing
something wrong. Or is it bug?

Unfiltered Objects

Filtered

https://lh3.googleusercontent.com/--Gp7lcyF99E/T4xDv7q7bDI/AAAAAAAAADI/vHp3tPIkEmI/s1600/filtered2

Filtered - lower zoom to better recognizing the ellipse, on both
left and right side of the inner circle should be some objects too

https://lh5.googleusercontent.com/-i_kcJfe9Paw/T4xD8PwsNUI/AAAAAAAAADU/Mq_7oF_EgqI/s1600/filtered

Many thanks for explanation!


(system) #9