I am currently using mongodb and plan to migrate to dynamodb. I have a pretty complex algorithm to find elements implying AND and OR.
Here is an (simplified) example. Search engine through users. Let's imagine user has 2 fields: lastName and firstName.
A user search "Harry Po"
The search engine should search:
$or : [{$and : [{lastName : "harry"}, {firstName: "po"}]}, {$and : [{lastName : "Po"}, {firstName: "harry"}]}]
And we can imagine other stuff like having lastname "harry po" and no firstname etc
With mongoDB I am using java wrapper Spring DataMongoDB which allowed me to do pretty all the stuff I wanted to do. However I am not able to find a way to do it with dynamodb
I found this page https://stackoverflow.com/questions/24275243/writing-dynamodb-or-condition-query#=
Howver it looks like I can only do an OR between my conditions. Is there something I am missing?