Created
June 6, 2014 17:37
-
-
Save thauanz/0cbd759fa9063b168f7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"took" : 2, | |
"timed_out" : false, | |
"_shards" : { | |
"total" : 1, | |
"successful" : 1, | |
"failed" : 0 | |
}, | |
"hits" : { | |
"total" : 2, | |
"max_score" : 1.0, | |
"hits" : [ { | |
"_index" : "produtos_search_development", | |
"_type" : "produto_search", | |
"_id" : "1", | |
"_score" : 1.0, | |
"_source":{"id":1,"descricao":"CH","peso":"10.0","nome":"Lorem","descricao":"dasd asd asd asd","preco":"57.0","state":"ativo","spec_prod":[{"spec_name":"Voltagem","option":"220"},{"spec_name":"Tipo Bocal","option":"3 Pino"}]} | |
}, { | |
"_index" : "produtos_search_development", | |
"_type" : "produto_search", | |
"_id" : "2", | |
"_score" : 1.0, | |
"_source":{"id":2,"descricao":"COMBINADA","peso":"10.0","nome":"Faca","descricao":"jhh jhjh","preco":"1.0","state":"ativo","spec_prod":[{"spec_name":"Tipo Corte","option":"Serra"},{"spec_name":"Cor do Cabo","option":"Branco"}]} | |
} ] | |
}, | |
"aggregations" : { | |
"spec_prod" : { | |
"buckets" : [ { | |
"key" : "Cor do Cabo", | |
"doc_count" : 1, | |
"suboptions" : { | |
"buckets" : [ { | |
"key" : "Branco", | |
"doc_count" : 1 | |
}, { | |
"key" : "Serra", | |
"doc_count" : 1 | |
} ] | |
} | |
}, { | |
"key" : "Tipo Bocal", | |
"doc_count" : 1, | |
"suboptions" : { | |
"buckets" : [ { | |
"key" : "220", | |
"doc_count" : 1 | |
}, { | |
"key" : "3 Pino", | |
"doc_count" : 1 | |
} ] | |
} | |
}, { | |
"key" : "Tipo Corte", | |
"doc_count" : 1, | |
"suboptions" : { | |
"buckets" : [ { | |
"key" : "Branco", | |
"doc_count" : 1 | |
}, { | |
"key" : "Serra", | |
"doc_count" : 1 | |
} ] | |
} | |
}, { | |
"key" : "Voltagem", | |
"doc_count" : 1, | |
"suboptions" : { | |
"buckets" : [ { | |
"key" : "220", | |
"doc_count" : 1 | |
}, { | |
"key" : "3 Pino", | |
"doc_count" : 1 | |
} ] | |
} | |
} ] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment