I have two type in a index called customer and address. custoemr id is foreign key in address table. but they are not nested types. is it possible to write query like "John live in London" which should fetch customers who live in london..?
1 Answer
If you want/need to have them in separate types, this is what Parent-Child Relationship is for.
Another common practice is simply to have the data de-normalized. If addresses are not often shared between customers you could just include it with the customer. Probably directly unless you have multiple addresses in which nested likely makes more sense.
-
Thanks Mark. My question is how to form the query. User might type Customer living in London. i want to form the query but how?– kansMay 16, 2015 at 15:12