to work with the mapping above your indexed document will have to look 
something like that:
{
    "id" : 1234,
    *"location" : *
*    {*
*        "lat" : 53.1,*
*        "lon" : -6.1*
*    }*
}

if for some reason your document have to have flat structure, then you can 
try computed fields plugin: 
https://github.com/SkillPages/elasticsearch-computed-fields


Cheers,


On Saturday, December 21, 2013 4:14:38 PM UTC, Moh wrote:
>
> Hi, 
>
>
> I'm writing a river from MySQL to ElasticSearch with JDBC River.
>
> I'm facing the problem which is to map two fields from a table (lat : 
> double, lon : double) to one elasticseach property geo_point.
>
>
> I trying this but it does not work.
>
>           "properties": {
>                     "_id": {
>                         "type": "long",
>                         "store": "yes"
>                     },
>                     "location": { 
>                         "type": "geo_point", 
>                         "lat_lon": true,
>                         "fields": {
>                             "lon": {
>                                 "type": "double",
>                                 "store": "yes"
>                             },                    
>                             "lat": {
>                                 "type": "double",
>                                 "store": "yes"
>                             }
>                         }
>                     }
>                 }
>
>
>
> How can I solve this problem.
>
> Thanks
>
>

-- 
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/29c451fb-6da1-44f8-8115-efebf2e9e55a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to