"anotherNestedObject.someText" is not contained in "nestedObject", so this cannot work. We should detect that and throw an exception.
Sorry if I didn’t get that. I’ll be happy to review the fix.
It is also necessary not to build a nested query if the construction is in a congested context. It's about using the same query with sorting and aggregation filtering, it wasn't necessary to build separate queries.
Thanks to this, the same filter works in searching and sorting.