-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Suchit Sahoo <[email protected]>
- Loading branch information
Showing
6 changed files
with
1,220 additions
and
14 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...tures/dashboard/opensearch_dashboards/data_explorer/index_with_nested_field/data.json.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"type": "doc", | ||
"value": { | ||
"id": "0", | ||
"index": "nestedindex", | ||
"source": { | ||
"products": [{ | ||
"base_price": 31.14, | ||
"discount_percentage": 5, | ||
"quantity": 1, | ||
"manufacturer": "Virora" | ||
}, { | ||
"base_price": 35.69, | ||
"discount_percentage": 10, | ||
"quantity": 3, | ||
"manufacturer": "Oceanavigations" | ||
}], | ||
"timestamp": "2015-09-21T06:09:20.045Z" | ||
} | ||
} | ||
} | ||
|
||
{ | ||
"type": "doc", | ||
"value": { | ||
"id": "1", | ||
"index": "nestedindex", | ||
"source": { | ||
"products": [{ | ||
"base_price": 28.99, | ||
"discount_percentage": 0, | ||
"quantity": 1, | ||
"manufacturer": "Tigress Enterprises" | ||
}, { | ||
"base_price": 32.99, | ||
"discount_percentage": 0, | ||
"quantity": 1, | ||
"manufacturer": "Oceanavigations" | ||
}], | ||
"timestamp": "2015-09-21T21:13:02.070Z" | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...s/dashboard/opensearch_dashboards/data_explorer/index_with_nested_field/mappings.json.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"type": "index", | ||
"value": { | ||
"index": "nestedindex", | ||
"mappings": { | ||
"properties": { | ||
"products": { | ||
"type": "nested", | ||
"properties": { | ||
"base_price": { | ||
"type": "float" | ||
}, | ||
"discount_percentage": { | ||
"type": "long" | ||
}, | ||
"manufacturer": { | ||
"type": "text", | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword", | ||
"ignore_above": 256 | ||
} | ||
} | ||
}, | ||
"quantity": { | ||
"type": "long" | ||
} | ||
} | ||
}, | ||
"timestamp": { | ||
"type": "date" | ||
} | ||
} | ||
}, | ||
"settings": { | ||
"index": { | ||
"replication": { | ||
"type": "DOCUMENT" | ||
}, | ||
"number_of_shards": "1", | ||
"number_of_replicas": "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
Oops, something went wrong.