Last active
August 18, 2017 18:49
-
-
Save danielef/08711bb6f47d73d8c658ad1fe93f273e to your computer and use it in GitHub Desktop.
caudal/example-mapping
This file contains hidden or 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
(let [es-url "http://localhost:9200" | |
es-mapping-name "caudal-mapping" | |
es-index-name "caudal-index" | |
es-mapping {es-mapping-name {:properties {:TYPE {:type "string" :index "not_analyzed"} | |
:COUNTRY {:type "string" :index "not_analyzed"} | |
:HOST_ORIGIN {:type "string" :index "not_analyzed"} | |
:ACTION {:type "string" :index "not_analyzed"} | |
:NAME_OF_QUALIFIER {:type "string" :index "not_analyzed"} | |
:AUTHORIZATION_RULE_ID {:type "string" :index "not_analyzed"} | |
:AUTHORIZATION_INDICATOR {:type "string" :index "not_analyzed"} | |
:OP_STP_AUTH_MS {:type "date" :format "epoch_millis"} | |
:RR_STP_AUTH_MS {:type "date" :format "epoch_millis"} | |
:RA_STP_AUTH_MS {:type "date" :format "epoch_millis"} | |
:TIMESTAMP {:type "date" :format "epoch_millis"} | |
:LYNX_RECEPTION_TIMESTAMP_MS {:type "date" :format "epoch_millis"} | |
:LYNX_SENDING_TIMESTAMP_MS {:type "date" :format "epoch_millis"} | |
:LOCATION {:type "geopoint"} | |
}}} | |
es-store (elastic-store! [es-url es-index-name es-mapping-name es-mapping {}])] | |
;; some streamer .... | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment