Skip to content

Instantly share code, notes, and snippets.

View vinpereira's full-sized avatar

Vinícius Pereira vinpereira

  • Amazon
  • São Paulo
View GitHub Profile
@vinpereira
vinpereira / Mapping.json
Created March 3, 2016 21:01
Aggregation in another scope with dynamic value
{
"_id" : {
"store" : true,
"index" : "not_analyzed"
},
"_timestamp" : {
"enabled" : true,
"store" : true
},
"properties" : {
@vinpereira
vinpereira / FilterWithParameterUsingRythm.json
Created March 3, 2016 14:47
From SQL to ES - How to check if a parameter is equals to a value
{
"filter": {
"bool": {
"should": [
{
"term": { "variables.rawValue": "@eps" }
},
{
??? "@eps": "ABC" ???
}