Reputation: 33
I have created a field (named as 'value') in my Azure Cognitive Search Index which may have values of different data types (for example, string, string array, object array). While creating the Index, I have configured type for this value field as "Edm.String" and due to which data in my Index is stored as:
Can anyone please guide on how to proceed in this case?
Note: I cannot make the value field of type "Collection(Edm.ComplexType)" because of the values are in string format and Indexer fails in this case. Also, I cannot modify the way database is structured.
Upvotes: 0
Views: 265
Reputation: 1683
We have a method called search.in
where we can apply filter on the collection created using Edm.String
. We have different other methods mentioned like here, which speaks about the $filter and other operations using Edm.String.
We have the choice of using the below syntax for filtering
keyphrases/any(t: search.in(t, 'database'))
Upvotes: 0