I have asked a simialr question before and i though i solved it but I did not.
I'm using Azure Search with an index that includes the "EdgeNGramTokenFilterV2" to achieve "starts with" behavior for partial matches. However, I noticed that it doesn't work as expected when the search term contains spaces.
For example, if my data includes the word "Blue hall" and I search for "Blue" I get the correct results. But when I search for "Blue h," I don't get any matches.
I am using SearchMode All
Example
{
"fields": [
{
"name": "myField",
"type": "Edm.String",
"searchable": true,
"analyzer": "myAnalyzer"
...
}
],
"analyzers": [
{
"name": "myAnalyzer",
"@odata.type": "#Microsoft.Azure.Search.CustomAnalyzer",
"tokenizer": "keyword_v2",
"tokenFilters": [ "lowercase", "my_edgeNGram" ]
}
],
"tokenFilters": [
{
"@odata.type": "#Microsoft.Azure.Search.EdgeNGramTokenFilterV2",
"name": "my_edgeNGram",
"minGram": 1,
"maxGram": 25,
"side": "front"
}
]
Could someone help with this please?