locked
How to properly query Collection(Edm.String) in Azure Search? RRS feed

  • Question

  • I've just create a Collection field in Azure search that looks like:

    [ {"id" : 40, "name" : "Fantasy"}, {"id" : 52, "name" : "Nonfiction"}, {"id" : 53, "name" : "Paranormal"} ]

    How can I properly query my index to give me all the results where field "id" inside the Collection is 40?

    I manage to do this with search.is_match but that way I', basically treating the collection as a string. If so what are the advantages of having a collection field over a string?

    Thursday, January 25, 2018 12:40 PM

Answers

  • Duplicate question from Stack Overflow. We will answer it here: https://stackoverflow.com/questions/48442654/how-to-properly-search-collectionedm-string-in-azure-search
    Thursday, January 25, 2018 1:58 PM
    Moderator