Please, I really need help for this query.
I just created this query but it's a very heavy query
{
"query": {
"match_all": {}
},
"filter": {
"and": [
{
"or": [
{
"query": {
"query_string": {
"query": "*Word1*",
"default_field": "name"
}
}
},
{
"query": {
"query_string": {
"query": "*Word1*",
"default_field": "firstname"
}
}
},
{
"query": {
"query_string": {
"query": "Word1*",
"default_field": "zipcode"
}
}
}
]
},
{
"or": [
{
"query": {
"query_string": {
"query": "*Wordn*",
"default_field": "name"
}
}
},
{
"query": {
"query_string": {
"query": "*Wordn*",
"default_field": "firstname"
}
}
},
{
"query": {
"query_string": {
"query": "Wordn*",
"default_field": "zipcode"
}
}
}
]
}
]
}
}
If i have ten word, i think the query will be very very very long to be
execute
--
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/29359521-cada-41de-beac-1b6d786abbdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.