Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Why can't I filter on a item in a Dictionary?

Vote:
 

I have the following Index enty:

I have this code:

But the search never returns results, I don't think it's correctly building the search terms.

What we do is in our RemoteHostedContentItem we have a Properties dictionary, at the time of indexing all of the keys/values become properties of the Properties dict.

What are we doing wrong?

#306172
Aug 03, 2023 18:04
Vote:
 

Hi, first you need to understand that the query you're writing is an expression, i.e. code that will be translated into something else. You can e.g. not use .ToString(), because that method can't be translated into a query Elastic/Search and Navigation understands. There is no built-in support for querying against dictonaries, but you can use this library to make that work https://github.com/x2find/Dictionary2Find

#306576
Edited, Aug 10, 2023 13:06
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.