I am using multi_match
search in Elasticsearch. How can I return all data using multi_match
?
I would like to do something like this:
curl -XGET 'http://localhost:9200/routines/_search?pretty=true&q=*:*'
but using the structure of multi_match
that I have when I search for specific phrases.
My query looks like this:
{
query: {
bool: {
should: [
{
nested: {
path: "steps",
query: {
nested: {
path: "steps.products",
query: {
multi_match: {
query: *,
fields: [
"steps.products.name"
]
}
}
}
}
}
},
{
multi_match: {
query: *,
fields: [
"title"
]
}
}
]
}
}
}
I wish I could use *
to match all the results but it doesn't work. How can I keep this query and change only the value set for query
?