Hello friends, I have a problem, I would be very happy if you could help. I want it to return exactly the string I want in a query using Wilcard, but it doesn't work. I have a document and document's title:
"Title" : "BREMAX SA"
The document id of this document is:
"_id" : "rMEMC3oBChFNLIc8INEm"
When I search using match with id, the result is returned successfully, but when I search with title field, no results are returned. That's why I'm using wildcard, but still no results.
when i search using document id:
GET my_index_name/_search
{
"query": {
"match": {
"_id": "rMEMC3oBChFNLIc8INEm"
}
}
}
result returns successfully:
"hits" : [
{
"_index" : "my_index_name",
"_type" : "_doc",
"_id" : "rMEMC3oBChFNLIc8INEm",
"_score" : 1.0,
"_source" : {
"CreateTime" : "2021-06-14T18:03:01.9387582+03:00",
"Title" : "BREMAX SA",
"OriginCountryId" : 24972,
"CreatedBy" : 1,
"IsActivated" : false,
"IsCancelled" : false,
"IsMembershipTypeBought" : false
}
}
]
When I search with wildcard or match using the title field:
GET my_index_name/_search
{
"query": {
"wildcard": {
"Title": {
"value": "*BREMAX SA*",
"case_insensitive": true
}
}
}
}
no results found:
"hits" : [ ]
I would be very grateful if you could help