Multiple results for parent type


(Joy Prakash Sharma) #1

Hi
Following query is always returning found: true
curl -XGET 'localhost:9200/indexname/type?parent=x' where x is any random
integer

I'm using the following mapping

curl -XPOST localhost:9200/indexname -d '
{
"mappings":{
"department":{
"properties" : {
"department" : {"type" : "string", "store" : true }
}
},
"category":{
"_parent" : {
"type" : "department"
},
"properties" : {
"category" : {"type" : "string", "store" : true },
"category_url" : {"type" : "string", "store" : true }
}
}
},
"settings": {
"number_of_shards" : 1,
"number_of_replicas" : 0
}
}
'

Am I missing something?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e9f27146-1264-4cfb-98b9-5f7cc82011b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2