Linked Questions

Popular Questions

Elastic search on nested data

Asked by At

I am trying to perform an Elasticsearch query in golang.

I am querying the following data:

    "Name": "jon",
    "Favorite": {
        "Food": "Sandwich",
        "Movie": "Harry Potter"

I get the correct match for Name by using #1, but I am not getting the correct for #2

q := elastic.NewMatchQuery("Name", "jon")
q := elastic.NewMatchQuery("Favorite.Food", "Sandwich")

Related Questions