-
-
Save jaimin-innoplexus/846ba06eec32f7381d67 to your computer and use it in GitHub Desktop.
Mapping and Aggregation Result
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
{ | |
"student_name": { | |
"buckets": [ | |
{ | |
"total_score": { | |
"value": 1.4e-322 | |
}, | |
"score_ranges": { | |
"buckets": [ | |
{ | |
"to": 1.0, | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hli36D8zESGFWAHz", | |
"_source": { | |
"name": "Anthony", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hljt6D8zESGFWAIW", | |
"_source": { | |
"name": "Anthony", | |
"score": 8, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlkk6D8zESGFWAI6", | |
"_source": { | |
"name": "Anthony", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
} | |
], | |
"total": 3, | |
"max_score": 1.0 | |
} | |
}, | |
"to_as_string": "1.0", | |
"key": "*-1.0", | |
"doc_count": 3 | |
}, | |
{ | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
], | |
"total": 0, | |
"max_score": None | |
} | |
}, | |
"from_as_string": "1.0", | |
"from": 1.0, | |
"key": "1.0-*", | |
"doc_count": 0 | |
} | |
] | |
}, | |
"key": "Anthony", | |
"doc_count": 3 | |
}, | |
{ | |
"total_score": { | |
"value": 1.3e-322 | |
}, | |
"score_ranges": { | |
"buckets": [ | |
{ | |
"to": 1.0, | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlkt6D8zESGFWAJA", | |
"_source": { | |
"name": "Mark", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlki6D8zESGFWAI5", | |
"_source": { | |
"name": "Mark", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79HlmZ6D8zESGFWAKH", | |
"_source": { | |
"name": "Mark", | |
"score": 6, | |
}, | |
"_index": "my_index" | |
} | |
], | |
"total": 3, | |
"max_score": 1.0 | |
} | |
}, | |
"to_as_string": "1.0", | |
"key": "*-1.0", | |
"doc_count": 3 | |
}, | |
{ | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
], | |
"total": 0, | |
"max_score": None | |
} | |
}, | |
"from_as_string": "1.0", | |
"from": 1.0, | |
"key": "1.0-*", | |
"doc_count": 0 | |
} | |
] | |
}, | |
"key": "Mark", | |
"doc_count": 3 | |
}, | |
{ | |
"total_score": { | |
"value": 1e-322 | |
}, | |
"score_ranges": { | |
"buckets": [ | |
{ | |
"to": 1.0, | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79HlVM6D8zESGFV__w", | |
"_source": { | |
"name": "Andrew", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79HlWh6D8zESGFWAAj", | |
"_source": { | |
"name": "Andrew", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
} | |
], | |
"total": 2, | |
"max_score": 1.0 | |
} | |
}, | |
"to_as_string": "1.0", | |
"key": "*-1.0", | |
"doc_count": 2 | |
}, | |
{ | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
], | |
"total": 0, | |
"max_score": None | |
} | |
}, | |
"from_as_string": "1.0", | |
"from": 1.0, | |
"key": "1.0-*", | |
"doc_count": 0 | |
} | |
] | |
}, | |
"key": "Andrew", | |
"doc_count": 2 | |
}, | |
{ | |
"total_score": { | |
"value": 1e-322 | |
}, | |
"score_ranges": { | |
"buckets": [ | |
{ | |
"to": 1.0, | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79HleM6D8zESGFWAFE", | |
"_source": { | |
"name": "Charles", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlej6D8zESGFWAFQ", | |
"_source": { | |
"name": "Charles", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
} | |
], | |
"total": 2, | |
"max_score": 1.0 | |
} | |
}, | |
"to_as_string": "1.0", | |
"key": "*-1.0", | |
"doc_count": 2 | |
}, | |
{ | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
], | |
"total": 0, | |
"max_score": None | |
} | |
}, | |
"from_as_string": "1.0", | |
"from": 1.0, | |
"key": "1.0-*", | |
"doc_count": 0 | |
} | |
] | |
}, | |
"key": "Charles", | |
"doc_count": 2 | |
}, | |
{ | |
"total_score": { | |
"value": 1e-322 | |
}, | |
"score_ranges": { | |
"buckets": [ | |
{ | |
"to": 1.0, | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlrx6D8zESGFWAN7", | |
"_source": { | |
"name": "Heather", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlrs6D8zESGFWAN4", | |
"_source": { | |
"name": "Heather", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
} | |
], | |
"total": 2, | |
"max_score": 1.0 | |
} | |
}, | |
"to_as_string": "1.0", | |
"key": "*-1.0", | |
"doc_count": 2 | |
}, | |
{ | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
], | |
"total": 0, | |
"max_score": None | |
} | |
}, | |
"from_as_string": "1.0", | |
"from": 1.0, | |
"key": "1.0-*", | |
"doc_count": 0 | |
} | |
] | |
}, | |
"key": "Heather", | |
"doc_count": 2 | |
}, | |
{ | |
"total_score": { | |
"value": 1e-322 | |
}, | |
"score_ranges": { | |
"buckets": [ | |
{ | |
"to": 1.0, | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlru6D8zESGFWAN5", | |
"_source": { | |
"name": "Takashi", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlrm6D8zESGFWAN2", | |
"_source": { | |
"name": "Takashi", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
} | |
], | |
"total": 2, | |
"max_score": 1.0 | |
} | |
}, | |
"to_as_string": "1.0", | |
"key": "*-1.0", | |
"doc_count": 2 | |
}, | |
{ | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
], | |
"total": 0, | |
"max_score": None | |
} | |
}, | |
"from_as_string": "1.0", | |
"from": 1.0, | |
"key": "1.0-*", | |
"doc_count": 0 | |
} | |
] | |
}, | |
"key": "Takashi", | |
"doc_count": 2 | |
}, | |
{ | |
"total_score": { | |
"value": 1e-322 | |
}, | |
"score_ranges": { | |
"buckets": [ | |
{ | |
"to": 1.0, | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79HlUJ6D8zESGFV__G", | |
"_source": { | |
"name": "Kenneth", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79HlK56D8zESGFV_7-", | |
"_source": { | |
"name": "Kenneth", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
} | |
], | |
"total": 2, | |
"max_score": 1.0 | |
} | |
}, | |
"to_as_string": "1.0", | |
"key": "*-1.0", | |
"doc_count": 2 | |
}, | |
{ | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
], | |
"total": 0, | |
"max_score": None | |
} | |
}, | |
"from_as_string": "1.0", | |
"from": 1.0, | |
"key": "1.0-*", | |
"doc_count": 0 | |
} | |
] | |
}, | |
"key": "Kenneth", | |
"doc_count": 2 | |
}, | |
{ | |
"total_score": { | |
"value": 1e-322 | |
}, | |
"score_ranges": { | |
"buckets": [ | |
{ | |
"to": 1.0, | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79HlrZ6D8zESGFWANs", | |
"_source": { | |
"name": "John", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlr66D8zESGFWAOA", | |
"_source": { | |
"name": "John", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
} | |
], | |
"total": 2, | |
"max_score": 1.0 | |
} | |
}, | |
"to_as_string": "1.0", | |
"key": "*-1.0", | |
"doc_count": 2 | |
}, | |
{ | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
], | |
"total": 0, | |
"max_score": None | |
} | |
}, | |
"from_as_string": "1.0", | |
"from": 1.0, | |
"key": "1.0-*", | |
"doc_count": 0 | |
} | |
] | |
}, | |
"key": "John", | |
"doc_count": 2 | |
}, | |
{ | |
"total_score": { | |
"value": 1e-322 | |
}, | |
"score_ranges": { | |
"buckets": [ | |
{ | |
"to": 1.0, | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlrv6D8zESGFWAN6", | |
"_source": { | |
"name": "Maisie", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79Hlrn6D8zESGFWAN3", | |
"_source": { | |
"name": "Maisie", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
} | |
], | |
"total": 2, | |
"max_score": 1.0 | |
} | |
}, | |
"to_as_string": "1.0", | |
"key": "*-1.0", | |
"doc_count": 2 | |
}, | |
{ | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
], | |
"total": 0, | |
"max_score": None | |
} | |
}, | |
"from_as_string": "1.0", | |
"from": 1.0, | |
"key": "1.0-*", | |
"doc_count": 0 | |
} | |
] | |
}, | |
"key": "Maisie", | |
"doc_count": 2 | |
}, | |
{ | |
"total_score": { | |
"value": 9e-323 | |
}, | |
"score_ranges": { | |
"buckets": [ | |
{ | |
"to": 1.0, | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79HlKo6D8zESGFV_78", | |
"_source": { | |
"name": "Charles", | |
"score": 10, | |
}, | |
"_index": "my_index" | |
}, | |
{ | |
"_score": 1.0, | |
"_type": "marksheet", | |
"_id": "AU79HlT_6D8zESGFV__B", | |
"_source": { | |
"name": "Charles", | |
"score": 8, | |
}, | |
"_index": "my_index" | |
} | |
], | |
"total": 2, | |
"max_score": 1.0 | |
} | |
}, | |
"to_as_string": "1.0", | |
"key": "*-1.0", | |
"doc_count": 2 | |
}, | |
{ | |
"top_hits": { | |
"hits": { | |
"hits": [ | |
], | |
"total": 0, | |
"max_score": None | |
} | |
}, | |
"from_as_string": "1.0", | |
"from": 1.0, | |
"key": "1.0-*", | |
"doc_count": 0 | |
} | |
] | |
}, | |
"key": "Charles", | |
"doc_count": 2 | |
} | |
], | |
"sum_other_doc_count": 1164, | |
"doc_count_error_upper_bound": -1 | |
} | |
} |
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
{ | |
"my_index": { | |
"mappings": { | |
"marksheet": { | |
"dynamic_templates": [ | |
{ | |
"string_fields": { | |
"mapping": { | |
"fields": { | |
"raw": { | |
"ignore_above": 256, | |
"index": "not_analyzed", | |
"type": "string" | |
} | |
}, | |
"type": "string" | |
}, | |
"match": "*", | |
"match_mapping_type": "string" | |
} | |
} | |
], | |
"date_detection": false, | |
"properties": { | |
"name": { | |
"type": "string", | |
"fields": { | |
"raw": { | |
"type": "string", | |
"index": "not_analyzed", | |
"ignore_above": 256 | |
} | |
} | |
}, | |
"score": { | |
"type": "long" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment