Skip to content

Instantly share code, notes, and snippets.

View wesplunk's full-sized avatar

Wes Plunk wesplunk

View GitHub Profile
@wesplunk
wesplunk / cloudSettings
Last active August 13, 2019 16:10
VSCodeSettings
{"lastUpload":"2019-08-13T16:10:30.784Z","extensionVersion":"v3.4.1"}
@wesplunk
wesplunk / gist.script
Created August 23, 2012 17:34
unbalanced docs in shards
echo "delete the index"
curl -XDELETE 'http://localhost:9200/gist/'
echo
echo
echo "create the index"
curl -XPUT 'http://localhost:9200/gist/' -d '{
"settings" : {
"number_of_shards" : 4,
"number_of_replicas" : 0,
"auto_expand_replicas": "false"
{
"id":"1"
,"type":"Order Line"
,"price":9.99
,"quantity":2
,"orderNumber":39393737
,"relationship":[
{
"entity":"solution"
"entityId":"1234"
{
"id":"1"
,"type":"Order Line"
,"price":9.99
,"quantity":2
,"orderNumber":39393737
,"relationship":[
{
"entity":"solution"
"entityId":"1234"
@wesplunk
wesplunk / 1.load._template.generic_template
Created February 9, 2012 15:25
elastic search dynamic mapping issue
{
"template": "*",
"settings": {
"number_of_shards": 2,
"number_of_replicas": 1,
"search": {
"slowlog": {
"level": "trace",
"threshold": {
"query": {