I use the Tire pearl for Rails, and I have a couple of questions about model associations. How do you work with them? Say you have a relationship between a Person and a car. Each person has a lot of cars. Now, if you also want to index car objects, how do you do it? How can you get a person by searching for car.make for example?
In general, I see that elasticsearch, which is document-oriented, does not have the same concepts as RDBMS. One to one, one to many and many to many.
If you have a many-to-many relationship, for example, and you want objects with the other end of the relationship to be impossible? Is elastic search better suited for a NoSQL database like MongoDB?
source share