Skip to content

Instantly share code, notes, and snippets.

@dggc
Created September 11, 2013 13:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dggc/6523421 to your computer and use it in GitHub Desktop.
Save dggc/6523421 to your computer and use it in GitHub Desktop.
{
"indices": {
"memory": {
"index_buffer_size": "30%"
}
},
"index":{
"number_of_replicas":0,
"number_of_shards":10,
"translog": {
"flush_threshold_ops" : 50000
},
"store": {
"type": "mmapfs"
},
"refresh_interval": "5s",
"analysis" : {
"analyzer":{
"default" : {
"type": "custom",
"filter": ["lowercase", "standard", "my_word_delimiter", "my_stop"],
"tokenizer": "whitespace"
},
"query" : {
"type": "custom",
"filter": ["lowercase", "standard", "query_word_delimiter", "query_stop"],
"tokenizer": "whitespace"
}
},
"filter" : {
"my_word_delimiter" : {
"type" : "word_delimiter",
"preserve_original" : true,
"split_on_numerics" : false,
"type_table": [ "# => SUBWORD_DELIM",
"@ => SUBWORD_DELIM"]
},
"my_stop" : {
"type" : "stop",
"stopwords" : "_none_"
},
"query_stop" : {
"type" : "stop",
"stopwords" : "_none_"
},
"query_word_delimiter" : {
"type" : "word_delimiter",
"split_on_numerics" : false,
"type_table": [ "# => ALPHANUM",
"@ => ALPHANUM"]
}
}
}
},
"cluster":{"name":"production"},
"discovery" : {
"zen" : {
"ping" : {
"multicast" : {
"disabled" : false
},
"unicast" : {
"hosts" : "elastic1"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment