I am sitting playing with elastic search from C#, and I wanted to create a query using an anonymous type in C# serialized to JSON. But I ran in to a problem as I need JSON that looks like this in one part:
{"bool": {<unimportant for question>}}
This would translate into a c# class that has a field named bool. Is this possible? (My guess is no...)
I think I will need custom serialization, or maybe elastic search provides some other alternative name for bool.