They are are actually two different things. parent is to identify parents 
for parent-child relationships. routing is to tell ES to shortcut the 
search/indexing only to a specific shard.

It's interesting that the second call works (it must have been implemented 
for convenience) but in general if you're indexing or searching, I'd use 
routing. If you are indexing a child document, then use parent to point to 
its parent document.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/a4a8ffa3-25f1-4cb2-8166-23c46e41be04%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to