Skip to content

Instantly share code, notes, and snippets.

View sebastialonso's full-sized avatar

Sebastián González sebastialonso

View GitHub Profile
@sebastialonso
sebastialonso / aggs.sh
Last active March 13, 2018 21:10
Aggregation in Elastic
curl -X POST -H 'Content-Type: application/json' http://localhost:9200/data-obj/data-obj/_search?size=0&pretty -d '
{
"aggs": {
"range_agg": {
"range": {
"field": "age",
"ranges": [
{"to": 20},
{"from": 20, "to": 25},
{"from": 25, "to": 30},
@sebastialonso
sebastialonso / nested_aggs.sh
Created March 13, 2018 21:14
Nested aggregation
curl -X POST -H 'Content-Type: application/json' http://localhost:9200/data-obj/data-obj/_search?size=0&pretty -d '
{
"aggs": {
"range_agg": {
"range": {
"field": "age",
"ranges": [
{"to": 20},
{"from": 20, "to": 25},
{"from": 25, "to": 30},
@sebastialonso
sebastialonso / gist:0df73421dd4184e8de69893391cf91ff
Created October 1, 2018 14:03
t080_template_asisgnación_de_responsabilidad
Incluir acá la meta semanal del equipo
Subequipo (pinnear a cada miembro del subequipo anteponiendo "@")
-------------------------------------------------
* Responsabilidad 1
* Responsabilidad 2
* Responsabilidad N