-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: Kartik Ganesh <gkart@amazon.com>
- Loading branch information
Showing
9 changed files
with
98 additions
and
29 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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,57 @@ | ||
# README for _testIndex-6.3.0.zip_ | ||
|
||
This zip file holds a Lucene index created using ElasticSearch 6.3.0. | ||
It was created by running the underlying commands against a single-node cluster, | ||
then compressing the contents of the underlying Lucene index directory i.e. | ||
the files under `<elasticsearch-root>/data/nodes/0/indices/<index-uuid>/0/index`. | ||
The index contains one document. | ||
|
||
## Commands | ||
|
||
``` | ||
curl -X PUT -H 'Content-Type: application/json' 'localhost:9200/testindex?pretty' -d' | ||
{ | ||
"settings": { | ||
"number_of_shards": 1, | ||
"number_of_replicas": 0 | ||
}, | ||
"mappings": { | ||
"testData": { | ||
"properties": { | ||
"id": { "type": "keyword" }, | ||
"isTestData": { "type": "boolean" }, | ||
"testNum": { "type": "short" }, | ||
"testRange": {"type": "integer_range" }, | ||
"testMessage": { | ||
"type": "text", | ||
"fields": { | ||
"length": { | ||
"type": "token_count", | ||
"analyzer": "standard" | ||
} | ||
} | ||
}, | ||
"testBlob": { "type": "binary", "index": false }, | ||
"testDate": { "type": "date" }, | ||
"testLocation": { "type": "geo_point"} | ||
} | ||
} | ||
} | ||
}' | ||
curl -X POST "localhost:9200/testindex/testData/?pretty" -H 'Content-Type: application/json' -d' | ||
{ | ||
"id": "testData1", | ||
"isTestData": true, | ||
"testNum": 99, | ||
"testRange": { | ||
"gte": 0, | ||
"lte": 100 | ||
}, | ||
"testMessage": "The OpenSearch Project", | ||
"testBlob": "VGhlIE9wZW5TZWFyY2ggUHJvamVjdA==", | ||
"testDate": "1970-01-02", | ||
"testLocation": "48.553532,-113.022881" | ||
} | ||
' | ||
``` |