tirexs
tirexs copied to clipboard
document mapping
Can I, at document creation, define that some specific document field, with name "ts" is of type date, with specific format?
Like with PUT call and body content
{ "properties": { "ts": {"type": "date", "format": "epoch_millis"} } }
Can this be done with Tirexs?
Really appreciate your help.
try do just http call. Where is problem?)
You can do it with the HTTP call (see Tirexs.HTTP.post). I'm passing a keyword list structure like
[index: "data-obj", type: "data-obj",
mapping: [properties: [job: [type: "keyword"],
name: [type: "text", analyzer: "nGram_analyzer"],
released: [type: "date", format: "dd/MM/yyyy"]]]]
here released
is my date format with its own specific format.
Hope it helps.