Type mapping of posts and categories

Hi
I am trying to define mapping for posts and categories it belong to.
The categories in itself can be nested. Like
A
|-------------|
B C
|----------|
D E

So category "E" has name "E" and path "/A/B/E"
A post can have 1 category associated with it.

Would appreciate if someone can guide me in right direction on how to do it
efficiently.
Probably all post of same root category on same shard (parent/child??)

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.