Created
October 8, 2016 03:32
-
-
Save jordancardwell/f954be7eb545cab9d482ff135bbc4860 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
GET /my_index/my_type/_search?explain=true | |
{ | |
"query": { | |
"match": { | |
"ngram": { | |
"query": "frod", | |
"minimum_should_match": "100%" | |
} | |
} | |
} | |
} |
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": 119, | |
"timed_out": false, | |
"_shards": { | |
"total": 5, | |
"successful": 5, | |
"failed": 0 | |
}, | |
"hits": { | |
"total": 396, | |
"max_score": 7.19747, | |
"hits": [ | |
{ | |
"_shard": 2, | |
"_node": "WQbWkgPmTyyt8UN181lNZw", | |
"_index": "my_index", | |
"_type": "my_type", | |
"_id": "7eddc3e86c4b09427a1ce89c9e112fae", | |
"_score": 7.19747, | |
"_source": { | |
"id": "7eddc3e86c4b09427a1ce89c9e112fae" | |
"name": "Frodo Baggins", | |
"ngram": "Frodo Baggins", | |
... | |
}, | |
"_explanation": { | |
"value": 7.1974697, | |
"description": "sum of:", | |
"details": [ | |
{ | |
"value": 7.1974697, | |
"description": "sum of:", | |
"details": [ | |
{ | |
"value": 5.1763186, | |
"description": "weight(ngram:fro in 459) [PerFieldSimilarity], result of:", | |
"details": [ | |
{ | |
"value": 5.1763186, | |
"description": "score(doc=459,freq=1.0), product of:", | |
"details": [ | |
{ | |
"value": 0.8480483, | |
"description": "queryWeight, product of:", | |
"details": [ | |
{ | |
"value": 9.766083, | |
"description": "idf(docFreq=1, maxDocs=12826)", | |
"details": [] | |
}, | |
{ | |
"value": 0.08683608, | |
"description": "queryNorm", | |
"details": [] | |
} | |
] | |
}, | |
{ | |
"value": 6.1038017, | |
"description": "fieldWeight in 459, product of:", | |
"details": [ | |
{ | |
"value": 1, | |
"description": "tf(freq=1.0), with freq of:", | |
"details": [ | |
{ | |
"value": 1, | |
"description": "termFreq=1.0", | |
"details": [] | |
} | |
] | |
}, | |
{ | |
"value": 9.766083, | |
"description": "idf(docFreq=1, maxDocs=12826)", | |
"details": [] | |
}, | |
{ | |
"value": 0.625, | |
"description": "fieldNorm(doc=459)", | |
"details": [] | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 2.0211508, | |
"description": "weight(ngram:rod in 459) [PerFieldSimilarity], result of:", | |
"details": [ | |
{ | |
"value": 2.0211508, | |
"description": "score(doc=459,freq=1.0), product of:", | |
"details": [ | |
{ | |
"value": 0.52991897, | |
"description": "queryWeight, product of:", | |
"details": [ | |
{ | |
"value": 6.102521, | |
"description": "idf(docFreq=77, maxDocs=12826)", | |
"details": [] | |
}, | |
{ | |
"value": 0.08683608, | |
"description": "queryNorm", | |
"details": [] | |
} | |
] | |
}, | |
{ | |
"value": 3.8140755, | |
"description": "fieldWeight in 459, product of:", | |
"details": [ | |
{ | |
"value": 1, | |
"description": "tf(freq=1.0), with freq of:", | |
"details": [ | |
{ | |
"value": 1, | |
"description": "termFreq=1.0", | |
"details": [] | |
} | |
] | |
}, | |
{ | |
"value": 6.102521, | |
"description": "idf(docFreq=77, maxDocs=12826)", | |
"details": [] | |
}, | |
{ | |
"value": 0.625, | |
"description": "fieldNorm(doc=459)", | |
"details": [] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"description": "match on required clause, product of:", | |
"details": [ | |
{ | |
"value": 0, | |
"description": "# clause", | |
"details": [] | |
}, | |
{ | |
"value": 0.08683608, | |
"description": "_type:my_type, product of:", | |
"details": [ | |
{ | |
"value": 1, | |
"description": "boost", | |
"details": [] | |
}, | |
{ | |
"value": 0.08683608, | |
"description": "queryNorm", | |
"details": [] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
}, | |
{ | |
"_shard": 2, | |
"_node": "WQbWkgPmTyyt8UN181lNZw", | |
"_index": "my_index", | |
"_type": "my_type", | |
"_id": "04cdb9ce-64a7-4cb6-ad67-98483d89b9f421f79819-b8b1-4f61-9434-400d6478c2d7", | |
"_score": 2.021151, | |
"_source": { | |
"id": "04cdb9ce-64a7-4cb6-ad67-98483d89b9f421f79819-b8b1-4f61-9434-400d6478c2d7", | |
"ngram": "Rodolfo Grimes", | |
"name": "Rodolfo Grimes", | |
... | |
}, | |
"_explanation": { | |
"value": 2.0211508, | |
"description": "sum of:", | |
"details": [ | |
{ | |
"value": 2.0211508, | |
"description": "sum of:", | |
"details": [ | |
{ | |
"value": 2.0211508, | |
"description": "weight(ngram:rod in 14) [PerFieldSimilarity], result of:", | |
"details": [ | |
{ | |
"value": 2.0211508, | |
"description": "score(doc=14,freq=1.0), product of:", | |
"details": [ | |
{ | |
"value": 0.52991897, | |
"description": "queryWeight, product of:", | |
"details": [ | |
{ | |
"value": 6.102521, | |
"description": "idf(docFreq=77, maxDocs=12826)", | |
"details": [] | |
}, | |
{ | |
"value": 0.08683608, | |
"description": "queryNorm", | |
"details": [] | |
} | |
] | |
}, | |
{ | |
"value": 3.8140755, | |
"description": "fieldWeight in 14, product of:", | |
"details": [ | |
{ | |
"value": 1, | |
"description": "tf(freq=1.0), with freq of:", | |
"details": [ | |
{ | |
"value": 1, | |
"description": "termFreq=1.0", | |
"details": [] | |
} | |
] | |
}, | |
{ | |
"value": 6.102521, | |
"description": "idf(docFreq=77, maxDocs=12826)", | |
"details": [] | |
}, | |
{ | |
"value": 0.625, | |
"description": "fieldNorm(doc=14)", | |
"details": [] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"value": 0, | |
"description": "match on required clause, product of:", | |
"details": [ | |
{ | |
"value": 0, | |
"description": "# clause", | |
"details": [] | |
}, | |
{ | |
"value": 0.08683608, | |
"description": "_type:my_type, product of:", | |
"details": [ | |
{ | |
"value": 1, | |
"description": "boost", | |
"details": [] | |
}, | |
{ | |
"value": 0.08683608, | |
"description": "queryNorm", | |
"details": [] | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
}, | |
... | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment