I am sitting playing with elastic search with C # and I wanted to create a query using an anonymous type in C # serialized for JSON. But I ran into a problem as I need JSON that looks like this:
{"bool": {<unimportant for question>}}
This translates to a C # class that has a field called bool. Is it possible? (My guess is no ...)
I think I will need custom serialization, or maybe elastic search will give another alternative name for bool.
source share