Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// curl -X GET 'localhost:9200/development_products/_search?pretty=true' -d '
{
explain: true,
query: {
dis_max: {
queries: [
{ field: { "name": "grmlock" } },
{ field: { "catalog.name": "grmlock" } },
{ field: { "items.name": "grmlock" } },
{ field: { "properties.character": "grmlock" } },
{ field: { "_all": "grmlock" } }
]
}
}
}
'
{
"took" : 61,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 77,
"max_score" : 3.01237536E8,
"hits" : [ {
"_shard" : 0,
"_node" : "PmieZ86GRvuqQwhuMoO-eQ",
"_index" : "development_products",
"_type" : "product",
"_id" : "4e725af9349c301b55000154",
"_score" : 3.01237536E8, "_source" : {"name":"Japanese, Norwegian, Indian Colector Edition Gift Set","number":"BB-DOTW-56","catalog":{"name":"Dolls of The World","number":"BB-DOTW","properties":{}},"items":[{"name":"Japanese Barbie","properties":{},"item_number":"BB-DOTW-56-1"},{"name":"Kimono","properties":{"Color":"Pink/Lavender"},"item_number":"BB-DOTW-56-2"},{"name":"Obi","properties":{"Color":"Gold"},"item_number":"BB-DOTW-56-3"},{"name":"Obi Tie-string","properties":{"Color":"Gold/Coral"},"item_number":"BB-DOTW-56-4"},{"name":"Stud Ring","properties":{"Color":"Gold"},"item_number":"BB-DOTW-56-5"},{"name":"Left Tabi - Short Sock","properties":{"Color":"White"},"item_number":"BB-DOTW-56-6"},{"name":"Right Tabi - Short Sock","properties":{"Color":"White"},"item_number":"BB-DOTW-56-7"},{"name":"Left Zori -Slipper","properties":{"Color":"Red"},"item_number":"BB-DOTW-56-8"},{"name":"Right Zori -Slipper","properties":{"Color":"Red"},"item_number":"BB-DOTW-56-9"},{"name":"Hair Bow","properties":{"Color":"Light Pink"},"item_number":"BB-DOTW-56-10"},{"name":"Hair Brush","properties":{"Color":"Red"},"item_number":"BB-DOTW-56-11"},{"name":"Labeled Doll Stand","properties":{"Color":"Off-white"},"item_number":"BB-DOTW-56-12"},{"name":"Barbie","properties":{},"item_number":"BB-DOTW-56-13"},{"name":"Bunad- Jumper Dress with Floral Print","properties":{"Color":"Light Blue"},"item_number":"BB-DOTW-56-14"},{"name":"Long Wide Sleeve Blouse","properties":{"Color":"White"},"item_number":"BB-DOTW-56-15"},{"name":"Cap","properties":{"Color":"Light Blue"},"item_number":"BB-DOTW-56-16"},{"name":"Purse","properties":{"Color":"Light Blue"},"item_number":"BB-DOTW-56-17"},{"name":"Left Pointy High Heeled Pump","properties":{"Color":"Black"},"item_number":"BB-DOTW-56-18"},{"name":"Right Pointy High Heeled Pump","properties":{"Color":"Black"},"item_number":"BB-DOTW-56-19"},{"name":"Medallion Necklace","properties":{"Color":"Silver"},"item_number":"BB-DOTW-56-20"},{"name":"Left Stud Earring","properties":{"Color":"Silver"},"item_number":"BB-DOTW-56-21"},{"name":"Right Stud Earring","properties":{"Color":"Silver"},"item_number":"BB-DOTW-56-22"},{"name":"Stud Ring","properties":{"Color":"Silver"},"item_number":"BB-DOTW-56-23"},{"name":"Hair Brush","properties":{"Color":"Fuscia"},"item_number":"BB-DOTW-56-24"},{"name":"Left Hair Tie","properties":{"Color":"Clear"},"item_number":"BB-DOTW-56-25"},{"name":"Right Hair Tie","properties":{"Color":"Clear"},"item_number":"BB-DOTW-56-26"},{"name":"Labeled Doll Stand","properties":{"Color":"Off-white"},"item_number":"BB-DOTW-56-27"},{"name":"Barbie","properties":{},"item_number":"BB-DOTW-56-28"},{"name":"Sari Long Skirt","properties":{"Color":"Fuscia"},"item_number":"BB-DOTW-56-29"},{"name":"Sari Short Sleeve Halter Top","properties":{"Color":"Fuscia"},"item_number":"BB-DOTW-56-30"},{"name":"Shawl","properties":{"Color":"Fuscia"},"item_number":"BB-DOTW-56-31"},{"name":"Left Long Hanging Earring","properties":{"Color":"Gold"},"item_number":"BB-DOTW-56-32"},{"name":"Right Long Hanging Earring","properties":{"Color":"Gold"},"item_number":"BB-DOTW-56-33"},{"name":"Stud Ring","properties":{"Color":"Gold"},"item_number":"BB-DOTW-56-34"},{"name":"Left Slipper","properties":{"Color":"Gold"},"item_number":"BB-DOTW-56-35"},{"name":"Right Slipper","properties":{"Color":"Gold"},"item_number":"BB-DOTW-56-36"},{"name":"Hair Ribbon","properties":{"Color":"Gold"},"item_number":"BB-DOTW-56-37"},{"name":"Hair Brush","properties":{"Color":"Fuscia"},"item_number":"BB-DOTW-56-38"},{"name":"Labeled Doll Stand","properties":{"Color":"Off-white"},"item_number":"BB-DOTW-56-39"}],"properties":{"Product #":"BB-DOTW-56","Edition":"Collector Edition"}},
"_explanation" : {
"value" : 3.01237536E8,
"description" : "max of:",
"details" : [ {
"value" : 3.01237536E8,
"description" : "product of:",
"details" : [ {
"value" : 4.5185628E9,
"description" : "sum of:",
"details" : [ {
"value" : 4.5185628E9,
"description" : "weight(items.name:ock in 198), product of:",
"details" : [ {
"value" : 0.13121133,
"description" : "queryWeight(items.name:ock), product of:",
"details" : [ {
"value" : 3.2397842,
"description" : "idf(docFreq=22, maxDocs=216)"
}, {
"value" : 0.04050002,
"description" : "queryNorm"
} ]
}, {
"value" : 3.4437292E10,
"description" : "fieldWeight(items.name:ock in 198), product of:",
"details" : [ {
"value" : 1.4142135,
"description" : "tf(termFreq(items.name:ock)=2)"
}, {
"value" : 3.2397842,
"description" : "idf(docFreq=22, maxDocs=216)"
}, {
"value" : 7.5161928E9,
"description" : "fieldNorm(field=items.name, doc=198)"
} ]
} ]
} ]
}, {
"value" : 0.06666667,
"description" : "coord(1/15)"
} ]
} ]
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment