Skip to content

Instantly share code, notes, and snippets.

@Manokrrish
Manokrrish / elasticsearch.yml
Created March 9, 2012 07:53
my elastic search cluster configuration
cluster.name: elasticsearch
path.conf: /usr/share/es/config
path.data: /usr/share/es-shared/data
network.host: 179.39.199.90
index.number_of_shards: 1
index.number_of_replicas: 1
index.refresh_interval: 30s
@Manokrrish
Manokrrish / percolator_query.json
Created February 7, 2012 06:46
problem while passing filter to set Percolator
curl -XPUT http://localhost:9200/_percolator/alerts/alert1?refresh=true -d
'{
"query" : {
"term" : { "field1" : "value1" }
},
"filter" : {
"and" : [
{
"term" : { "field1" : "value2"}