I have following records in my Azure Search Index
{
"customerId": "8feda7ca-c9f0-40d9-86d8-434b0bbe94c2",
"registeredName": "TeamPeacock",
"tradingName": "TeamPeacock",
},
{
"customerId": "b445eb04-8d07-4708-a197-770cda3a459e",
"registeredName": "TeamPeacock1",
"tradingName": "TeamPeacock 1",
}
I am using Full Search with wildcard/fuzzy search to fetch records.
Below search queries fail to fetch the above records:
Failed Query 1:
{
"search": "(peacock*) OR (peacock*~) OR (peacock~)",
"queryType": "full",
"searchMode": "all"
}
Failed Query 2:
{
"search": "(peacock*) OR (peacock*~) OR (peacock~)",
"queryType": "full",
"searchMode": "any"
}
Failed Query 3:
{
"search": "(peacock*)",
"queryType": "full",
"searchMode": "any"
}
Failed Query 4:
{
"search": "(peacock*~) OR (peacock~)",
"queryType": "full",
"searchMode": "any"
}
But if I include term "teampeacock", search query returns result.
Passed Query:
{
"search": "(teampeacock*) OR (peacock*~) OR (peacock~)",
"queryType": "full",
"searchMode": "all"
}
Passed Query:
{
"search": "(teampeacock*~) OR (peacock~)",
"queryType": "full",
"searchMode": "any"
}
Why searching with term "peacock" is not returning the data?