Commit e6954899 authored by Dmytro Karpenko's avatar Dmytro Karpenko
Browse files

Reflecting new data types and removal of record types in the mapping.

parent b7f1e504
......@@ -43,6 +43,10 @@ also installs a logrorate entry for this file.
Some technical stuff
====================
* It's recommended to apply the mapping to your index before you start submit
data:
curl -XPUT http://your_es_host:your_es_port/your_es_index \
-d @usagerecords.mapping.json -H "Content-Type: application/json"
* The init script has 'dmytrok_arc_test' index hardcoded in itself. Should be
changed when/if we create new production indices for ARC data.
* See also 'python jura_to_es.py --help'.
......
......@@ -3,23 +3,22 @@
"number_of_replicas" : 1
},
"mappings": {
"arcusagerecord": {
"_doc": {
"properties": {
"MachineName": {
"type": "string",
"index": "not_analyzed"
"type": "keyword"
},
"VOattributes": {
"type": "nested",
"properties": {
"Role": { "type": "string" },
"Group": { "type": "string" }
"Role": { "type": "text" },
"Group": { "type": "text" }
}
},
"FileDownloads": {
"type": "nested",
"properties": {
"URL": { "type": "string" },
"URL": { "type": "text" },
"EndTime": { "type": "date" },
"RetrievedFromCache": { "type": "boolean" },
"StartTime": { "type": "date" },
......@@ -29,7 +28,7 @@
"FileUploads": {
"type": "nested",
"properties": {
"URL": { "type": "string" },
"URL": { "type": "text" },
"EndTime": { "type": "date" },
"StartTime": { "type": "date" },
"Size": { "type": "long" }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment