I am currently designing a small project and wanted some advice on how best to make it more future proof.
I have a basic object Activity and extenstions for it. In a straight database world I might have a table for activity a table for each extension and an activity-extension join table.
I would then do a join on the appropriate tables to do a search for information.
My plan is to use CXF to open it as a web service, java middle tier for business logic and elasticsearch at the back to store and query data.
My question then is am I thinking of elasticsearch in the right way or is the approach (different tables and join) totally wrong. If it is correct what would be the best way to represent different "tables" in ElasticSearch terminology.
Also for elasticsearch what is the best way to deal with identity information in objects. Is it best to map _id to an id field in each object or store my own id field?
Cheers, Rob