Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "hits": [
- {
- "_index": "my-index2",
- "_type": "my-type",
- "_id": "1",
- "_score": 1,
- "_source": {
- "entities": {
- "persons": [
- "Kobe Bryant",
- "Michael Jordan"
- ],
- "dates": [
- "Yesterday"
- ],
- "locations": [
- "Munich",
- "New York"
- ]
- },
- "my_field": "Kobe Bryant was one of the best basketball players of all times. Not even Michael Jordan has ever scored 81 points in one game. Munich is really an awesome city, but New York is as well. Yesterday has been the hottest day of the year."
- }
- }
- {
- "aggs" : {
- "avg_date" : {
- "avg" : {
- "script" : {
- "source" : "doc.entities.dates"
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment