Hi, I have a problem with mapping latlong in elastic search

Here is my input data to elastic search server 

{
    "member_id": "8",
    "keywords": [
        "Sample 2",
        "Sample 3",
        "s",
        "sample"
    ],
    "long_descriptions": "Des",
    "general_desc": "Sample",
    "service_location": 1,
    "categories": [
        "Entertainment Entertainment Entertainment Entertai",
        "DJ’s",
        "Personal Driver",
        "Transportation Services"
    ],
 *   "pin": {*
*        "location": {*
*            "lat": 33.8101772,*
*            "lon": -118.3520389*
*        }*
*    },*
    "status": 1,
    "state": true
}

and when I check the mapping it shows like 

"member_id": {
                        "type": "string"
                    },
                    *"pin": {*
*                        "properties": {*
*                            "location": {*
*                                "properties": {*
*                                    "lat": {*
*                                        "type": "double"*
*                                    },*
*                                    "lon": {*
*                                        "type": "double"*
*                                    }*
*                                }*
*                            }*
*                        }*
                    },

I am currently using elasticsearch v1.0.1, is this something related to the 
installation of elasticsearch? 

-- 
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/084dd688-b7c8-4d31-a0bc-1ad4ecdc0be3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to