Skip to content

Instantly share code, notes, and snippets.

/mapping.js Secret

Created October 3, 2012 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/bbde44039b20a57eebf0 to your computer and use it in GitHub Desktop.
Save anonymous/bbde44039b20a57eebf0 to your computer and use it in GitHub Desktop.
ES 100% processor usage
{
users: {
login_history: {
_source: {
compress: true
},
properties: {
end_time: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
licence: {
type: "long",
ignore_malformed: false
},
operator_id: {
type: "string",
index: "not_analyzed"
},
start_time: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
type: {
type: "string",
index: "not_analyzed",
include_in_all: false
}
}
},
chat: {
_source: {
compress: true
},
properties: {
auto_invite: {
dynamic: "true",
properties: {
action_id: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
action_name: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
action_taken: {
type: "boolean"
},
client_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
custom_variables: {
dynamic: "true",
properties: {
cs_name: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
cs_value: {
type: "string",
index: "not_analyzed"
}
}
},
date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
integration_variables: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
skill_id: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
url: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
}
}
},
chat: {
dynamic: "true",
properties: {
custom_variables: {
dynamic: "true",
properties: {
cs_name: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
cs_value: {
type: "string",
index: "not_analyzed"
}
}
},
duration: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
ims: {
dynamic: "true",
properties: {
livechat_id: {
type: "string",
index: "not_analyzed"
},
nick: {
type: "string"
}
}
},
integration_variables: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
last_operator_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
messages: {
dynamic: "true",
properties: {
date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
livechat_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
message: {
type: "string"
},
type: {
type: "string",
index: "not_analyzed",
include_in_all: false
}
}
},
operators: {
dynamic: "true",
properties: {
date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
hidden: {
type: "boolean"
},
ip: {
type: "string",
index: "not_analyzed"
},
left_date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
livechat_id: {
type: "string",
index: "not_analyzed"
},
nick: {
type: "string"
},
time_zone: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
}
}
},
rate: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
skill_id: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
start_date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
url: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
visitor: {
dynamic: "true",
properties: {
ip: {
type: "string",
index: "not_analyzed"
},
livechat_id: {
type: "string",
index: "not_analyzed"
},
nick: {
type: "string"
},
time_zone: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
}
}
}
}
},
conference_id: {
type: "string",
index: "not_analyzed"
},
creation_date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
goals: {
dynamic: "true",
properties: {
client_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
list: {
type: "nested",
include_in_root: true,
dynamic: "true",
properties: {
action_id: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
action_name: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
custom_variables: {
dynamic: "true",
properties: {
cs_name: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
cs_value: {
type: "string",
index: "not_analyzed",
include_in_all: false
}
}
},
date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
integration_variables: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
operator_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
order_currency: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
order_description: {
type: "string"
},
order_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
order_price: {
type: "double",
ignore_malformed: false,
include_in_all: false
},
skill_id: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
url: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
}
}
}
}
},
licence: {
type: "long",
ignore_malformed: false
},
manual_invite: {
dynamic: "true",
properties: {
client_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
custom_variables: {
dynamic: "true",
properties: {
cs_name: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
cs_value: {
type: "string",
index: "not_analyzed"
}
}
},
date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
integration_variables: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
operator_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
personal_text: {
type: "string",
include_in_all: false
},
skill_id: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
url: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
}
}
},
post_chat: {
dynamic: "true",
properties: {
date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
group_fields: {
dynamic: "true",
properties: {
desc: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
id_and_radio_value: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
order: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
radio_value: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
type: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
value: {
type: "string"
}
}
},
survey_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
text_fields: {
dynamic: "true",
properties: {
desc: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
order: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
type: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
value: {
type: "string"
}
}
}
}
},
pre_chat: {
dynamic: "true",
properties: {
client_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
client_ip: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
custom_variables: {
dynamic: "true",
properties: {
cs_name: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
cs_value: {
type: "string",
index: "not_analyzed"
}
}
},
date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
group_fields: {
dynamic: "true",
properties: {
desc: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
id_and_radio_value: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
order: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
radio_value: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
type: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
value: {
type: "string"
}
}
},
integration_variables: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
skill_id: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
survey_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
text_fields: {
dynamic: "true",
properties: {
desc: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
order: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
type: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
value: {
type: "string"
}
}
},
url: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
}
}
},
queues: {
dynamic: "true",
properties: {
client_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
client_ip: {
type: "string",
index: "not_analyzed"
},
client_nick: {
type: "string"
},
list: {
dynamic: "true",
properties: {
custom_variables: {
dynamic: "true",
properties: {
cs_name: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
cs_value: {
type: "string",
index: "not_analyzed"
}
}
},
duration: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
integration_variables: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
},
skill_id: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
start_date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
url: {
type: "string",
index: "no",
store: "yes",
include_in_all: false
}
}
}
}
}
}
},
left_msg: {
_source: {
compress: true
},
properties: {
client_id: {
type: "string",
index: "not_analyzed",
include_in_all: false
},
company: {
type: "string"
},
creation_date: {
type: "date",
ignore_malformed: false,
format: "dateOptionalTime",
include_in_all: false
},
email: {
type: "string",
index: "not_analyzed"
},
licence: {
type: "long",
ignore_malformed: false
},
message: {
type: "string"
},
name: {
type: "string"
},
skill_id: {
type: "long",
ignore_malformed: false,
include_in_all: false
},
unique_id: {
type: "string",
index: "not_analyzed"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment