[Query Time Join] [has_child] Type [<type>] does not have parent mapping

Although the theory is clear I can not make it working :frowning:

I simply created 2 types :

{"document3":{"properties":{"content":{"type":"string","store":true},"id":{"type":"string","store":true},"title":{"type":"string","store":true}}}}

{"entity6":{"_parent":{"type":"document3"},"properties":{"description":{"type":"string","store":true},"label":{"type":"string","store":true}}}}

Query :
http://localhost:9200/exercise/document3/

{"query":{"has_child":{"type":"entity6","score_type":"max","query":{"term":{"label":"vegeta"}}}}}

But I got :
nested: QueryParsingException[[exercise] [has_child] Type [entity6] does
not have parent mapping

Although the parent mapping has been fixed and we can see this from the
mapping summary of entity6 .
I spend hours fighting with this mistery :frowning:

First day working with ES !

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

Great to hear you got started with ES!
Can you share the actions you have performed as curl commands and put them
in a gist? This way we can easily see where it went wrong.

On 25 September 2013 17:06, Alessandro Benedetti <benedetti.alex85@gmail.com

wrote:

Although the theory is clear I can not make it working :frowning:

I simply created 2 types :

{"document3":{"properties":{"content":{"type":"string","store":true},"id":{"type":"string","store":true},"title":{"type":"string","store":true}}}}

{"entity6":{"_parent":{"type":"document3"},"properties":{"description":{"type":"string","store":true},"label":{"type":"string","store":true}}}}

Query :
http://localhost:9200/exercise/document3/

{"query":{"has_child":{"type":"entity6","score_type":"max","query":{"term":{"label":"vegeta"}}}}}

But I got :
nested: QueryParsingException[[exercise] [has_child] Type [entity6] does
not have parent mapping

Although the parent mapping has been fixed and we can see this from the
mapping summary of entity6 .
I spend hours fighting with this mistery :frowning:

First day working with ES !

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

--
Met vriendelijke groet,

Martijn van Groningen

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

Here you are Martijn

I hope it helps, please tell me regarding any error , or anything else you
need :slight_smile:

Is it no a common issue ?

2013/9/25 Martijn v Groningen martijn.v.groningen@gmail.com

Great to hear you got started with ES!
Can you share the actions you have performed as curl commands and put them
in a gist? This way we can easily see where it went wrong.

On 25 September 2013 17:06, Alessandro Benedetti <
benedetti.alex85@gmail.com> wrote:

Although the theory is clear I can not make it working :frowning:

I simply created 2 types :

{"document3":{"properties":{"content":{"type":"string","store":true},"id":{"type":"string","store":true},"title":{"type":"string","store":true}}}}

{"entity6":{"_parent":{"type":"document3"},"properties":{"description":{"type":"string","store":true},"label":{"type":"string","store":true}}}}

Query :
http://localhost:9200/exercise/document3/

{"query":{"has_child":{"type":"entity6","score_type":"max","query":{"term":{"label":"vegeta"}}}}}

But I got :
nested: QueryParsingException[[exercise] [has_child] Type [entity6] does
not have parent mapping

Although the parent mapping has been fixed and we can see this from the
mapping summary of entity6 .
I spend hours fighting with this mistery :frowning:

First day working with ES !

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

--
Met vriendelijke groet,

Martijn van Groningen

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/ThT8TlvAL2I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Benedetti Alessandro
Visiting card : Alessandro Benedetti - London, United Kingdom, Sease Ltd, M.Sc. in Computer Science @Università degli studi Roma3, B.Sc. in Computer Science @Università degli studi Roma3 | about.me

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

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

I don't know why, but after i have restarted my machine, now the query is
working without exception.
This is really strange as it is a Query Time Join...
Does this thing suggest you anything ?

Cheers

2013/9/26 Alessandro Benedetti benedetti.alex85@gmail.com

Here you are Martijn

Elastic Search [Query Time Join] [has_child] Type [<type>] does not have parent mapping · GitHub

I hope it helps, please tell me regarding any error , or anything else you
need :slight_smile:

Is it no a common issue ?

2013/9/25 Martijn v Groningen martijn.v.groningen@gmail.com

Great to hear you got started with ES!
Can you share the actions you have performed as curl commands and put
them in a gist? This way we can easily see where it went wrong.

On 25 September 2013 17:06, Alessandro Benedetti <
benedetti.alex85@gmail.com> wrote:

Although the theory is clear I can not make it working :frowning:

I simply created 2 types :

{"document3":{"properties":{"content":{"type":"string","store":true},"id":{"type":"string","store":true},"title":{"type":"string","store":true}}}}

{"entity6":{"_parent":{"type":"document3"},"properties":{"description":{"type":"string","store":true},"label":{"type":"string","store":true}}}}

Query :
http://localhost:9200/exercise/document3/

{"query":{"has_child":{"type":"entity6","score_type":"max","query":{"term":{"label":"vegeta"}}}}}

But I got :
nested: QueryParsingException[[exercise] [has_child] Type [entity6] does
not have parent mapping

Although the parent mapping has been fixed and we can see this from the
mapping summary of entity6 .
I spend hours fighting with this mistery :frowning:

First day working with ES !

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

--
Met vriendelijke groet,

Martijn van Groningen

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/ThT8TlvAL2I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Benedetti Alessandro
Visiting card : Alessandro Benedetti - London, United Kingdom, Sease Ltd, M.Sc. in Computer Science @Università degli studi Roma3, B.Sc. in Computer Science @Università degli studi Roma3 | about.me

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

--

Benedetti Alessandro
Visiting card : Alessandro Benedetti - London, United Kingdom, Sease Ltd, M.Sc. in Computer Science @Università degli studi Roma3, B.Sc. in Computer Science @Università degli studi Roma3 | about.me

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

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

If you executed the curl actions in the order you have specified then this
error shouldn't occur. Did you by chance added the parent field after you
added a child document?

On 26 September 2013 14:57, Alessandro Benedetti <benedetti.alex85@gmail.com

wrote:

I don't know why, but after i have restarted my machine, now the query is
working without exception.
This is really strange as it is a Query Time Join...
Does this thing suggest you anything ?

Cheers

2013/9/26 Alessandro Benedetti benedetti.alex85@gmail.com

Here you are Martijn

Elastic Search [Query Time Join] [has_child] Type [<type>] does not have parent mapping · GitHub

I hope it helps, please tell me regarding any error , or anything else
you need :slight_smile:

Is it no a common issue ?

2013/9/25 Martijn v Groningen martijn.v.groningen@gmail.com

Great to hear you got started with ES!
Can you share the actions you have performed as curl commands and put
them in a gist? This way we can easily see where it went wrong.

On 25 September 2013 17:06, Alessandro Benedetti <
benedetti.alex85@gmail.com> wrote:

Although the theory is clear I can not make it working :frowning:

I simply created 2 types :

{"document3":{"properties":{"content":{"type":"string","store":true},"id":{"type":"string","store":true},"title":{"type":"string","store":true}}}}

{"entity6":{"_parent":{"type":"document3"},"properties":{"description":{"type":"string","store":true},"label":{"type":"string","store":true}}}}

Query :
http://localhost:9200/exercise/document3/

{"query":{"has_child":{"type":"entity6","score_type":"max","query":{"term":{"label":"vegeta"}}}}}

But I got :
nested: QueryParsingException[[exercise] [has_child] Type [entity6]
does not have parent mapping

Although the parent mapping has been fixed and we can see this from the
mapping summary of entity6 .
I spend hours fighting with this mistery :frowning:

First day working with ES !

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

--
Met vriendelijke groet,

Martijn van Groningen

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/ThT8TlvAL2I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Benedetti Alessandro
Visiting card : Alessandro Benedetti - London, United Kingdom, Sease Ltd, M.Sc. in Computer Science @Università degli studi Roma3, B.Sc. in Computer Science @Università degli studi Roma3 | about.me

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

--

Benedetti Alessandro
Visiting card : Alessandro Benedetti - London, United Kingdom, Sease Ltd, M.Sc. in Computer Science @Università degli studi Roma3, B.Sc. in Computer Science @Università degli studi Roma3 | about.me

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

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

--
Met vriendelijke groet,

Martijn van Groningen

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

Nope, I first added the mappings and then I sent the block of documents
through a java application.
But the problem is solved now, if it will happen again I let you know, to
try to understand what caused the bug !
Thank you very much for the effort!

2013/9/26 Martijn v Groningen martijn.v.groningen@gmail.com

If you executed the curl actions in the order you have specified then this
error shouldn't occur. Did you by chance added the parent field after you
added a child document?

On 26 September 2013 14:57, Alessandro Benedetti <
benedetti.alex85@gmail.com> wrote:

I don't know why, but after i have restarted my machine, now the query is
working without exception.
This is really strange as it is a Query Time Join...
Does this thing suggest you anything ?

Cheers

2013/9/26 Alessandro Benedetti benedetti.alex85@gmail.com

Here you are Martijn

Elastic Search [Query Time Join] [has_child] Type [<type>] does not have parent mapping · GitHub

I hope it helps, please tell me regarding any error , or anything else
you need :slight_smile:

Is it no a common issue ?

2013/9/25 Martijn v Groningen martijn.v.groningen@gmail.com

Great to hear you got started with ES!
Can you share the actions you have performed as curl commands and put
them in a gist? This way we can easily see where it went wrong.

On 25 September 2013 17:06, Alessandro Benedetti <
benedetti.alex85@gmail.com> wrote:

Although the theory is clear I can not make it working :frowning:

I simply created 2 types :

{"document3":{"properties":{"content":{"type":"string","store":true},"id":{"type":"string","store":true},"title":{"type":"string","store":true}}}}

{"entity6":{"_parent":{"type":"document3"},"properties":{"description":{"type":"string","store":true},"label":{"type":"string","store":true}}}}

Query :
http://localhost:9200/exercise/document3/

{"query":{"has_child":{"type":"entity6","score_type":"max","query":{"term":{"label":"vegeta"}}}}}

But I got :
nested: QueryParsingException[[exercise] [has_child] Type [entity6]
does not have parent mapping

Although the parent mapping has been fixed and we can see this from
the mapping summary of entity6 .
I spend hours fighting with this mistery :frowning:

First day working with ES !

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

--
Met vriendelijke groet,

Martijn van Groningen

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/ThT8TlvAL2I/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Benedetti Alessandro
Visiting card : Alessandro Benedetti - London, United Kingdom, Sease Ltd, M.Sc. in Computer Science @Università degli studi Roma3, B.Sc. in Computer Science @Università degli studi Roma3 | about.me

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

--

Benedetti Alessandro
Visiting card : Alessandro Benedetti - London, United Kingdom, Sease Ltd, M.Sc. in Computer Science @Università degli studi Roma3, B.Sc. in Computer Science @Università degli studi Roma3 | about.me

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

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

--
Met vriendelijke groet,

Martijn van Groningen

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/ThT8TlvAL2I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Benedetti Alessandro
Visiting card : Alessandro Benedetti - London, United Kingdom, Sease Ltd, M.Sc. in Computer Science @Università degli studi Roma3, B.Sc. in Computer Science @Università degli studi Roma3 | about.me

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

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