Schema advice

Hey,

i have the following scenario: i have posts and comments for the posts, and
i want to search sometimes only in the posts, sometimes only in the
comments, sometimes i would like to have an aggregated search ( for example
search for 'elastic' in comments and posts at the same time ).

What kind of Schemas should I use? Should the comments be nested inside the
posts ? Should they be entirely different type?

Thanks in advance!

--
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.

Hi,

See
Fun with elasticsearch's children and nested documents - Space Vatican for
some tips.

Have the same issue, however the examples from the website (parent/child)
don't work (but i'm probably doing something wrong.

Cheers,
Maarten

Op donderdag 4 juli 2013 18:21:22 UTC+2 schreef Gergely Németh het volgende:

Hey,

i have the following scenario: i have posts and comments for the posts,
and i want to search sometimes only in the posts, sometimes only in the
comments, sometimes i would like to have an aggregated search ( for example
search for 'elastic' in comments and posts at the same time ).

What kind of Schemas should I use? Should the comments be nested inside
the posts ? Should they be entirely different type?

Thanks in advance!

--
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.