In Azure Search I have an index that has a batch of documents. Documents are JSONs and one of the documents has the following fields (abriged):
{
"id": "1638",
"segment": "N",
"segmentIndicator": 1.23,
}
and some other documents where segment
is present, but is null.
I issue a search request using POST, as described under the link. I am getting valid results for id
and segmentIndicator
using the requests like
{
"search": "id:(\"1638\")",
"queryType": "full",
"searchMode": "all"
}
or
{
"search": "segmentIndicator:(\"1.23\")",
"queryType": "full",
"searchMode": "all"
}
as they both return the desired document and nothing else. I am not able to change queryType
and searchMode
and an exact match to my search criteria is needed (no fuzzy / proximity search).
However, when I say
{
"search": "segment:(\"N\")",
"queryType": "full",
"searchMode": "all"
}
I am getting an empty search result, while I expect the same document to be found. How I can alter my query so I can correctly find the document by segment
parameter?