GeoPoint mapping Option

Hi,

There's very little information about the geopoint "lat_lon" indexation
option.
Can someone describe how queries are leveraging so that I can get a better
understanding of whether that would be helpful in my case?

  • there's also little information on how to pass an option to the geopoint
    mapping is this:

$ curl -XPUT 'http://localhost:9200/twitter/tweet/_mapping' -d '

{
"tweet" : {
"properties" : {
"message" : {"type" : "string", "store" : "yes", "lat_lon": "true"}

    }
}

}
'

Cheers,

-stan

--
Stanislas Polu
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | Realtime Photo
Search

First, you don't need to store the field. Second, by default, when the
lat_lon are not indexed, the values are loaded to memory and used for geo
calculations in memory (like checking bounding boxes, distances and the
like). For things that can use lat_lon that are indexed (like bounding
boxes), then you can configure the relevant geo filter to the the "checks"
instead of in memory, using the indexed lat_lon. Most times, the in memory
option is the one you want.

On Tue, May 15, 2012 at 12:03 PM, Stanislas Polu
polu.stanislas@gmail.comwrote:

Hi,

There's very little information about the geopoint "lat_lon" indexation
option.
Can someone describe how queries are leveraging so that I can get a better
understanding of whether that would be helpful in my case?

  • there's also little information on how to pass an option to the geopoint
    mapping is this:

$ curl -XPUT 'http://localhost:9200/twitter/tweet/_mapping' -d '

{
"tweet" : {
"properties" : {
"message" : {"type" : "string", "store" : "yes", "lat_lon": "true"}

    }
}

}
'

Cheers,

-stan

--
Stanislas Polu
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | Realtime
Photo Search

Hi Everyone,

How can one pass arguments to a mapping?
such as the 'lat_lon': 'true' option for the GeoPoint mapping?

Best,

-stan

--
Stanislas Polu
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | Realtime Photo
Search

On Tue, May 15, 2012 at 11:03 AM, Stanislas Polu
polu.stanislas@gmail.comwrote:

Hi,

There's very little information about the geopoint "lat_lon" indexation
option.
Can someone describe how queries are leveraging so that I can get a better
understanding of whether that would be helpful in my case?

  • there's also little information on how to pass an option to the geopoint
    mapping is this:

$ curl -XPUT 'http://localhost:9200/twitter/tweet/_mapping' -d '

{
"tweet" : {
"properties" : {
"message" : {"type" : "string", "store" : "yes", "lat_lon": "true"}

    }
}

}
'

Cheers,

-stan

--
Stanislas Polu
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | Realtime
Photo Search

Hmmm I had missed your reply! Thanks!

I understand I should stick with in-memory. I still have a couples
questions for the sake of it:

  • When is the field loaded in memory? on-demand I presume. Is it loaded
    entirely (meaning first request might be slow and all subsequent geo
    constrained requests are fast)
  • How does one configure a mapping in the PUT mapping API. I mean the
    syntax is not clear from the website.

Best,

-stan

On Thursday, May 17, 2012 10:32:22 PM UTC+2, kimchy wrote:

First, you don't need to store the field. Second, by default, when the
lat_lon are not indexed, the values are loaded to memory and used for geo
calculations in memory (like checking bounding boxes, distances and the
like). For things that can use lat_lon that are indexed (like bounding
boxes), then you can configure the relevant geo filter to the the "checks"
instead of in memory, using the indexed lat_lon. Most times, the in memory
option is the one you want.

On Tue, May 15, 2012 at 12:03 PM, Stanislas Polu <polu.stanislas@gmail.com

wrote:

Hi,

There's very little information about the geopoint "lat_lon" indexation
option.
Can someone describe how queries are leveraging so that I can get a
better understanding of whether that would be helpful in my case?

  • there's also little information on how to pass an option to the
    geopoint mapping is this:

$ curl -XPUT 'http://localhost:9200/twitter/tweet/_mapping' -d '

{
"tweet" : {
"properties" : {
"message" : {"type" : "string", "store" : "yes", "lat_lon": "true"}

    }
}

}
'

Cheers,

-stan

--
Stanislas Polu
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | Realtime
Photo Search

On Mon, May 21, 2012 at 2:57 PM, Stanislas Polu polu.stanislas@gmail.comwrote:

Hmmm I had missed your reply! Thanks!

I understand I should stick with in-memory. I still have a couples
questions for the sake of it:

  • When is the field loaded in memory? on-demand I presume. Is it loaded
    entirely (meaning first request might be slow and all subsequent geo
    constrained requests are fast)

It is loaded entirely on the first request. In upcoming 0.20 you will be
able to register warmup searches that will make loading (specifically for
new data coming in) faster and less disruptive on the search experience.

  • How does one configure a mapping in the PUT mapping API. I mean the
    syntax is not clear from the website.

Not really sure what the question is here..., what do you not understand?
Maybe gist a sample of what you try and not working so we can fix it.

Best,

-stan

On Thursday, May 17, 2012 10:32:22 PM UTC+2, kimchy wrote:

First, you don't need to store the field. Second, by default, when the
lat_lon are not indexed, the values are loaded to memory and used for geo
calculations in memory (like checking bounding boxes, distances and the
like). For things that can use lat_lon that are indexed (like bounding
boxes), then you can configure the relevant geo filter to the the "checks"
instead of in memory, using the indexed lat_lon. Most times, the in memory
option is the one you want.

On Tue, May 15, 2012 at 12:03 PM, Stanislas Polu <
polu.stanislas@gmail.com> wrote:

Hi,

There's very little information about the geopoint "lat_lon" indexation
option.
Can someone describe how queries are leveraging so that I can get a
better understanding of whether that would be helpful in my case?

  • there's also little information on how to pass an option to the
    geopoint mapping is this:

$ curl -XPUT 'http://localhost:9200/**twitter/tweet/_mapping http://localhost:9200/twitter/tweet/_mapping' -d '

{
"tweet" : {
"properties" : {
"message" : {"type" : "string", "store" : "yes", "lat_lon": "true"}

    }
}

}
'

Cheers,

-stan

--
Stanislas Polu
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | **Realtime
Photo Search

If I were to use the lat_lon indexing option (which I'm not as per our
previous discussion). How would I configure the field to do so. Would it be
that way?

Best,

-stan

--
Stanislas Polu
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | Realtime Photo
Search

On Wed, May 23, 2012 at 11:35 PM, Shay Banon kimchy@gmail.com wrote:

On Mon, May 21, 2012 at 2:57 PM, Stanislas Polu polu.stanislas@gmail.comwrote:

Hmmm I had missed your reply! Thanks!

I understand I should stick with in-memory. I still have a couples
questions for the sake of it:

  • When is the field loaded in memory? on-demand I presume. Is it loaded
    entirely (meaning first request might be slow and all subsequent geo
    constrained requests are fast)

It is loaded entirely on the first request. In upcoming 0.20 you will be
able to register warmup searches that will make loading (specifically for
new data coming in) faster and less disruptive on the search experience.

  • How does one configure a mapping in the PUT mapping API. I mean the
    syntax is not clear from the website.

Not really sure what the question is here..., what do you not understand?
Maybe gist a sample of what you try and not working so we can fix it.

Best,

-stan

On Thursday, May 17, 2012 10:32:22 PM UTC+2, kimchy wrote:

First, you don't need to store the field. Second, by default, when the
lat_lon are not indexed, the values are loaded to memory and used for geo
calculations in memory (like checking bounding boxes, distances and the
like). For things that can use lat_lon that are indexed (like bounding
boxes), then you can configure the relevant geo filter to the the "checks"
instead of in memory, using the indexed lat_lon. Most times, the in memory
option is the one you want.

On Tue, May 15, 2012 at 12:03 PM, Stanislas Polu <
polu.stanislas@gmail.com> wrote:

Hi,

There's very little information about the geopoint "lat_lon" indexation
option.
Can someone describe how queries are leveraging so that I can get a
better understanding of whether that would be helpful in my case?

  • there's also little information on how to pass an option to the
    geopoint mapping is this:

$ curl -XPUT 'http://localhost:9200/**twitter/tweet/_mapping http://localhost:9200/twitter/tweet/_mapping' -d '

{
"tweet" : {
"properties" : {
"message" : {"type" : "string", "store" : "yes", "lat_lon": "true"}

    }
}

}
'

Cheers,

-stan

--
Stanislas Polu
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | **Realtime
Photo Search

Yes.

On Thu, May 31, 2012 at 10:15 AM, Stanislas Polu
polu.stanislas@gmail.comwrote:

If I were to use the lat_lon indexing option (which I'm not as per our
previous discussion). How would I configure the field to do so. Would it be
that way?

gist:2841825 · GitHub

Best,

-stan

--
Stanislas Polu
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | Realtime
Photo Search

On Wed, May 23, 2012 at 11:35 PM, Shay Banon kimchy@gmail.com wrote:

On Mon, May 21, 2012 at 2:57 PM, Stanislas Polu <polu.stanislas@gmail.com

wrote:

Hmmm I had missed your reply! Thanks!

I understand I should stick with in-memory. I still have a couples
questions for the sake of it:

  • When is the field loaded in memory? on-demand I presume. Is it loaded
    entirely (meaning first request might be slow and all subsequent geo
    constrained requests are fast)

It is loaded entirely on the first request. In upcoming 0.20 you will be
able to register warmup searches that will make loading (specifically for
new data coming in) faster and less disruptive on the search experience.

  • How does one configure a mapping in the PUT mapping API. I mean the
    syntax is not clear from the website.

Not really sure what the question is here..., what do you not understand?
Maybe gist a sample of what you try and not working so we can fix it.

Best,

-stan

On Thursday, May 17, 2012 10:32:22 PM UTC+2, kimchy wrote:

First, you don't need to store the field. Second, by default, when the
lat_lon are not indexed, the values are loaded to memory and used for geo
calculations in memory (like checking bounding boxes, distances and the
like). For things that can use lat_lon that are indexed (like bounding
boxes), then you can configure the relevant geo filter to the the "checks"
instead of in memory, using the indexed lat_lon. Most times, the in memory
option is the one you want.

On Tue, May 15, 2012 at 12:03 PM, Stanislas Polu <
polu.stanislas@gmail.com> wrote:

Hi,

There's very little information about the geopoint "lat_lon"
indexation option.
Can someone describe how queries are leveraging so that I can get a
better understanding of whether that would be helpful in my case?

  • there's also little information on how to pass an option to the
    geopoint mapping is this:

$ curl -XPUT 'http://localhost:9200/**twitter/tweet/_mapping http://localhost:9200/twitter/tweet/_mapping' -d '

{
"tweet" : {
"properties" : {
"message" : {"type" : "string", "store" : "yes", "lat_lon": "true"}

    }
}

}
'

Cheers,

-stan

--
Stanislas Polu
Mo: +33 6 83 71 90 04 | Tw: @spolu | http://teleportd.com | **Realtime
Photo Search