I have the following query. I'm trying to find values of 'hello world', but it returns zero results. However, when value = 'hello*'
, it does give me that expected result. Any idea how I can change my query to give me that hello world result? I've tried *hello world*
, but for some reason it just won't search anything with spaces.
I think it has something to do with the spaces as when I try to search "* *"
, it gives me no results. But I know I have many values in there with spaces. Any ideas would help!
{
"query": {
"filtered": {
"filter": {
"and": [
{
"terms": {
"variant": [
"collection"
]
}
}
]
},
"query": {
"wildcard": {
"name": {
"value": "hello world"
}
}
}
}
}
}