I cant seem to get the filter clause to retrieve documents from my index using a regex clause. The schema for my index is straight forward, I only have a single field which is both searchable and filterable and is of type Edm.String, called someId (which normally contains a hash value of something) and has sample values like:
someId
k6l7k2oj
k6l55iq8
k6l61ff8 ...
I need to be able to extract all values from this field that start with K6 and end with 8. So based on the documentation I am using this in my POST request body
{ "filter": "search.ismatch('/^k6[?]*d$/','someId','simple','all')",
"select":"someId",
"count":"true"
} and it comes up with nothing. On the other hand if I simplify and say I only need data where someId starts with K6, I seem to get some success if i just use a wild card. like this:
{ "filter": "search.ismatch('k6l*','someId','simple','all')",
"select":"someId",
"count":"true"
} I do get what I am looking for. Question is why does the regex not work with search.isMatch(), what am i missing?
...