Skip to content

Instantly share code, notes, and snippets.

@zencd
Last active June 15, 2021 19:59
Show Gist options
  • Save zencd/61d7dc1c63bbb1734dbb12ab2a4c9f62 to your computer and use it in GitHub Desktop.
Save zencd/61d7dc1c63bbb1734dbb12ab2a4c9f62 to your computer and use it in GitHub Desktop.
{
"took" : 7,
"timed_out" : false,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 1,
"relation" : "eq"
},
"max_score" : 1.2038873,
"hits" : [
{
"_shard" : "[arrays][0]",
"_node" : "xzCt5rJeROWZxFCUWsCGEA",
"_index" : "arrays",
"_type" : "_doc",
"_id" : "1",
"_score" : 1.2038873,
"_source" : {
"name" : [
"john1",
"john2"
]
},
"_explanation" : {
"value" : 1.2038873,
"description" : "sum of:",
"details" : [
{
"value" : 0.6019437,
"description" : "weight(name:john1 in 0) [PerFieldSimilarity], result of:",
"details" : [
{
"value" : 0.6019437,
"description" : "score(freq=1.0), product of:",
"details" : [
{
"value" : 1.6500001,
"description" : "boost",
"details" : [ ]
},
{
"value" : 0.6931472,
"description" : "idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:",
"details" : [
{
"value" : 1,
"description" : "n, number of documents containing term",
"details" : [ ]
},
{
"value" : 2,
"description" : "N, total number of documents with field",
"details" : [ ]
}
]
},
{
"value" : 0.5263158,
"description" : "tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:",
"details" : [
{
"value" : 1.0,
"description" : "freq, occurrences of term within document",
"details" : [ ]
},
{
"value" : 1.2,
"description" : "k1, term saturation parameter",
"details" : [ ]
},
{
"value" : 0.75,
"description" : "b, length normalization parameter",
"details" : [ ]
},
{
"value" : 1.0,
"description" : "dl, length of field",
"details" : [ ]
},
{
"value" : 1.5,
"description" : "avgdl, average length of field",
"details" : [ ]
}
]
}
]
}
]
},
{
"value" : 0.6019437,
"description" : "weight(name:john2 in 0) [PerFieldSimilarity], result of:",
"details" : [
{
"value" : 0.6019437,
"description" : "score(freq=1.0), product of:",
"details" : [
{
"value" : 1.6500001,
"description" : "boost",
"details" : [ ]
},
{
"value" : 0.6931472,
"description" : "idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:",
"details" : [
{
"value" : 1,
"description" : "n, number of documents containing term",
"details" : [ ]
},
{
"value" : 2,
"description" : "N, total number of documents with field",
"details" : [ ]
}
]
},
{
"value" : 0.5263158,
"description" : "tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:",
"details" : [
{
"value" : 1.0,
"description" : "freq, occurrences of term within document",
"details" : [ ]
},
{
"value" : 1.2,
"description" : "k1, term saturation parameter",
"details" : [ ]
},
{
"value" : 0.75,
"description" : "b, length normalization parameter",
"details" : [ ]
},
{
"value" : 1.0,
"description" : "dl, length of field",
"details" : [ ]
},
{
"value" : 1.5,
"description" : "avgdl, average length of field",
"details" : [ ]
}
]
}
]
}
]
}
]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment