Hi there,
Elasticsearch uses tokenizers for fields, when you index "BREMAX SA" Elasticsearch uses standard analyzer which tokenize field content using non-letter and space.
So when you index BREMAX SA the inverted index, where the full-text search happens, there are two separate tokens created, BREMAX and SA, because there are no "BREMAX SA" token you cannot wildcard match it using * before and after.
In your current state what you can do is search for "BREMAX" or "SA", which in its own is a very bad idea Elasticsearch specifically mentions not to start and end with wildcard symbols.
If you want to be able to search for "BREMAX SA" with wildcards you need keyword tokenizer in your analyzer, which will keep the string inside the field whole.
edit:
or you can use a multifield keyword like this;
GET test/_search
{
"query": {
"wildcard": {
"Title.keyword": {
"value": "*BREMAX SA*",
"case_insensitive": true
}
}
}
}
but this approach is not what you are looking for in my opinion.
Best regards.