Azure / azure-search-vector-samples

A repository of code samples for Vector search capabilities in Azure AI Search.
https://azure.microsoft.com/products/search
MIT License
690 stars 285 forks source link

filtering nested json with CS #151

Closed FrancescoSaverioZuppichini closed 4 months ago

FrancescoSaverioZuppichini commented 5 months ago

Hi there 👋

I was wondering if there is a way to filter nested jsons with CS. For example, let's assume we have the following document stored

{ "metadata" : { "foo" : { "id": "baa" }  } }

is there a way to filter documents based on the id? Haven'f find anything in the examples

Thank you,

Fra

FrancescoSaverioZuppichini commented 5 months ago

friendly pinging @mattgotteiner

mattgotteiner commented 4 months ago

Yes, you would need to use Complex Types

https://learn.microsoft.com/en-us/azure/search/search-howto-complex-data-types?tabs=portal