Skip to content

Instantly share code, notes, and snippets.

View ariasdelrio's full-sized avatar

Guillermo Arias del Río ariasdelrio

View GitHub Profile
@ariasdelrio
ariasdelrio / gist:8842138
Last active August 29, 2015 13:56
multi_field and faceting in ES 1.0rc1
# Delete index
curl -s -X DELETE "http://$host:$port/multi_field_facetting" 2>&1 > /dev/null
# Create index
curl -s -X POST "http://$host:$port/multi_field_facetting" -d '
{
"settings" : {
"index": {
"analysis" : {
"filter" : {
@ariasdelrio
ariasdelrio / gist:7543562
Created November 19, 2013 10:44
Highlighting not working in ES 0.90.6/7
curl -s -X DELETE "http://localhost:9200/test_highlight" > /dev/null
curl -s -X PUT "http://localhost:9200/test_highlight" -d '
{
"settings" : {
"index": {
"number_of_shards" : 1,
"analysis": {
"analyzer": {
"icu_analyzer" : {
"type": "custom",