Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Sense: add mapping transform
Browse files Browse the repository at this point in the history
  • Loading branch information
bleskes committed Nov 18, 2014
1 parent 6060054 commit e4e631b
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions sense/app/kb/api_1_0/mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ define(function () {
methods: ['PUT', 'POST'],
patterns: [
"{indices}/{type}/_mapping",
"{indices}/_mapping/{type}",
"{indices}/_mapping/{type}"
],
priority: 10, // collides with put doc by id
data_autocomplete_rules: {
Expand Down Expand Up @@ -121,6 +121,27 @@ define(function () {
'dynamic_date_formats': ['yyyy-MM-dd'],
'date_detection': BOOLEAN,
'numeric_detection': BOOLEAN,
'transform': {
__template: {
script: ""
},
__one_of: [
{
script: "",
params: {},
lang: "groovy"
},
[
{
script: "",
params: {},
lang: "groovy"
}
]
]


},
'properties': {
'*': {
type: {
Expand Down Expand Up @@ -216,7 +237,7 @@ define(function () {
api.addEndpointDescription('_put_mapping', {
methods: ['PUT'],
patterns: [
"{indices}/_mapping",
"{indices}/_mapping"
],
data_autocomplete_rules: {
'{type}': {
Expand Down

0 comments on commit e4e631b

Please sign in to comment.