Skip to content

Instantly share code, notes, and snippets.

@andreaschiffo
Created September 16, 2021 17:41
Show Gist options
  • Save andreaschiffo/e8c3d6b2f86c53ba6a28257d47a1831b to your computer and use it in GitHub Desktop.
Save andreaschiffo/e8c3d6b2f86c53ba6a28257d47a1831b to your computer and use it in GitHub Desktop.
MB_ES_account match query results
{
"took": 312,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 10000,
"relation": "gte"
},
"max_score": 164.04868,
"hits": [
{
"_shard": "[my-shard][0]",
"_node": "acccSjFfQnOffqbiHV5nAg",
"_index": "my-index",
"_type": "_doc",
"_id": "360086",
"_score": 164.04868,
"_source": {
"id": "360086",
"user-id": 389872,
"username": "xxx",
"email": "[email protected]",
"password-hash": "xxx",
"currency-code": "xxx",
"first-name": "xxx",
"last-name": "xxx",
"date-of-birth": "xxxx-xx-xx",
"address": "xxx",
"city": "N/A",
"postal-code": "xxx",
"country-code": "xxx",
"phone": "xxx",
"security-question": "xxx?",
"security-answer": "xxx "
},
"_explanation": {
"value": 164.04868,
"description": "max plus 0.5 times others of:",
"details": [
{
"value": 22.275639,
"description": "weight(username:xxx in 3223) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 0.88973737,
"description": "weight(email:gmail.com in 3223) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 12.44133,
"description": "weight(email:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 11.066888,
"description": "weight(password-hash:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 12.547058,
"description": "weight(first-name:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 12.619294,
"description": "weight(last-name:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 13.881224,
"description": "max of:",
"details": [
{
"value": 13.801764,
"description": "weight(first-name:xxx in 3223) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 13.881224,
"description": "weight(last-name:xxx in 3223) [PerFieldSimilarity], result of:",
"details": [...]
}
]
},
{
"value": 1.0,
"description": "date-of-birth:[XXX TO XXX]",
"details": []
},
{
"value": 92.82605,
"description": "sum of:",
"details": [
{
"value": 46.42945,
"description": "sum of:",
"details": [
{
"value": 46.42945,
"description": "weight(first-name:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
}
]
},
{
"value": 43.3966,
"description": "sum of:",
"details": [
{
"value": 43.3966,
"description": "weight(last-name:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
}
]
},
{
"value": 3.0,
"description": "date-of-birth:[XXX TO XXX]^3.0",
"details": []
}
]
},
{
"value": 17.182709,
"description": "weight(postal-code:XXX in 3223) [PerFieldSimilarity], result of:",
"details": []
},
{
"value": 0.6058445,
"description": "weight(country-code:XXX in 3223) [PerFieldSimilarity], result of:",
"details": []
},
{
"value": 24.692732,
"description": "weight(phone:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 4.2287235,
"description": "sum of:",
"details": [...]
},
{
"value": 0.7475863,
"description": "weight(security-question:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 1.7405679,
"description": "weight(security-question:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 1.7405679,
"description": "weight(security-question:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
}
]
},
{
"value": 9.014062,
"description": "weight(security-answer:XXX in 3223) [PerFieldSimilarity], result of:",
"details": [...]
}
]
}
},
{
"_shard": "[my-shard][0]",
"_node": "acccSjFfQnOffqbiHV5nAg",
"_index": "my-index",
"_type": "_doc",
"_id": "359895",
"_score": 40.7084,
"_source": {
"id": "359895",
"user-id": 389681,
"username": "XXX",
"email": "[email protected]",
"password-hash": "XXX",
"currency-code": "XXX",
"first-name": "XXX",
"last-name": "XXX",
"date-of-birth": "1973-03-01",
"address": "XXX",
"city": "N/A",
"postal-code": "XXX ",
"country-code": "XXX",
"phone": "XXX",
"security-question": "XXX?",
"security-answer": "XXX"
},
"_explanation": {
"value": 40.7084,
"description": "max plus 0.5 times others of:",
"details": [
{
"value": 1.0,
"description": "date-of-birth:[XXX TO XXX]",
"details": []
},
{
"value": 17.182709,
"description": "weight(postal-code:XXX in 3183) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 0.6058445,
"description": "weight(country-code:XXX in 3183) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 24.692732,
"description": "weight(phone:XXX in 3183) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 4.2287235,
"description": "sum of:",
"details": [
{
"value": 1.5324217E-6,
"description": "weight(security-question:XXX in 3183) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 0.7475863,
"description": "weight(security-question:XXX in 3183) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 1.7405679,
"description": "weight(security-question:XXX in 3183) [PerFieldSimilarity], result of:",
"details": [...]
},
{
"value": 1.7405679,
"description": "weight(security-question:XXX in 3183) [PerFieldSimilarity], result of:",
"details": [...]
}
]
},
{
"value": 9.014062,
"description": "weight(security-answer:XXX in 3183) [PerFieldSimilarity], result of:",
"details": [...]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment