Good morning,
How can I search using a wildcard and _all the fields?
I have this analyzer:
POST filtreclient_caste/_analyze
{
"analyzer": "full_name",
"text": "001-000009"
}
{
"tokens": [
{
"token": "001-000009",
"start_offset": 0,
"end_offset": 10,
"type": "word",
"position": 0
}
]
}
And I would like get results if I write this search:
GET filtreclient_caste/_search
{
"from": 0,
"size": 10,
"query": {
"bool": {
"should": [
{
"wildcard": {
"_all": {
"value": "001-*",
"boost": 1
}
}
}
]
}
}
}
Is possible?
Thanks in advance