If it is implicitly being set to routing, does it mean that I don't have to
explicitly specify routing? However when I try to index the child document,
it gives me the routing missing exception error. Is it a bug? Or am I
supposed to set an explicit routing?
Jonathan
On Monday, 24 December 2012 15:56:19 UTC+8, Jonathan Moo wrote:
I have explicitly disabled routing for my Elasticsearch(ES) mapping:
The routing value is based on the parent value for child documents by
default, so if you use the parent option during indexing no routing
has to be specified. Can try to create a gist and that shows your
issue?
If it is implicitly being set to routing, does it mean that I don't have to
explicitly specify routing? However when I try to index the child document,
it gives me the routing missing exception error. Is it a bug? Or am I
supposed to set an explicit routing?
Jonathan
On Monday, 24 December 2012 15:56:19 UTC+8, Jonathan Moo wrote:
I have explicitly disabled routing for my Elasticsearch(ES) mapping:
How can I disable the routing if it is not a necessary requirement to have
in a parent/child mapping?
If routing is a requirement, can routing be done on a field that is not
unique?
Hi Martijn,
*
*
Thanks for your help! I realized I made an error while I was trying to
index. I have been trying to index this:
curl -XPUT
'http://localhost:9200/prototype_2012.12.24/chow-clfg/Cg-IKkxdTstKAAAAlw-'
-d
'{"clfg":"Cg+IKkxdTstKAAAAlwQ","@timestamp":"2012-12-24T17:25:00.000Z","count":1}'
but this will throw an error here:
{"error":"RoutingMissingException[routing is required for
[prototype_2012.12.24]/[chow-clfg]/[Cg-IKkxdTstKAAAAlw-]]","status":500}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.