Something to add:

When I index an item, I reference his parent with its id, not his account 
name. Is that part of the problem? Can I use the account to set the item's 
parent when indexing it? And if so, how would elasticsearch know that I'm 
using this field?

On Thursday, March 13, 2014 10:30:12 PM UTC-4, Robin Boutros wrote:
>
> Hey,
>
> I have a parent/child relationship between Item and Player.
>
> {
>   "item": {
>       "_parent": {
>           "type": "player"
>       },
>       "_routing": {
>           "required":true,
>           "path":"account"
>       },
>       "properties": {
>         
>   
> "account":{"type":"string","index":"not_analyzed","omit_norms":true,"index_options":"docs"}
>       }
>   }
> }
>
> {
>   "player": {
>       "_routing": {
>           "required":true,
>           "path":"account"
>       },
>       "properties": {
>           
> {"type":"string","index":"not_analyzed","omit_norms":true,"index_options":"docs"}
>   
>    
>       }
>   }
> }
>
> Ok, so with this, I'm hoping to have items indexed on the same shard as 
> their parents.
>
> But when I try to save an item, I get this error:
>
> *External routing [1] and document path routing [Frank1234r] mismatch*
>
> *Frank1234r *is the account name, and *1 *is the id of the player with 
> the name.
>
> What do I need to do to fix that? What the "external routing" exactly? 
> Thanks!
>

-- 
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/8b4e0c5a-d477-42fc-bf1e-846efafc195f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to