I'm testing the following query in Azure Search portal but is not giving me the expected results.
I want as result any document having at least one ocurrence of algo
word.
search=algo&queryType=full&searchMode=any
Important: MyVal
is Searchable and have Lucene Analyzer (spanish)
Expected element result:
{
"@odata.context": "https://....windows.net/indexes(....)/$metadata#docs(*)",
"value": [
{
"MyKey":"1",
"MyValues":[
{
"MyVal":"algo aqui"
},
{
"MyVal":"lala"
},
]
}
]
}
NOT expected element result:
{
"@odata.context": "https://....windows.net/indexes(....)/$metadata#docs(*)",
"value": [
{
"MyKey":"1",
"MyValues":[
{
"MyVal":"algoOtherStuff aqui"
},
{
"MyVal":"lala"
},
]
}
]
}
Result got:
{
"@odata.context": "https://....windows.net/indexes(....)/$metadata#docs(*)",
"value": []
}
More example queries and results
search=algo*&queryType=full&searchMode=any
[No results]
search=/.algo./&queryType=full&searchMode=any
[No results]
search=algo aqui&queryType=full&searchMode=any
[EXPECTED RESULT!!!] (element found)
search=aqui&queryType=full&searchMode=any
[EXPECTED RESULT!!!] (element found)
IMPORTANT: If I change the words for two others to test like: "some data" or "something special" and search by one of those, Azure Search is returning the expected results. Seems like a problem with "algo" particular word.