tirexs icon indicating copy to clipboard operation
tirexs copied to clipboard

document mapping

Open ulutomaz opened this issue 7 years ago • 2 comments

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.

ulutomaz avatar Jul 06 '17 11:07 ulutomaz

try do just http call. Where is problem?)

OpakAlex avatar Jul 06 '17 16:07 OpakAlex

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.

sebastialonso avatar Feb 26 '18 21:02 sebastialonso