This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET http://localhost:9200/development-asis-flickr_photos/_search | |
{ | |
"query": { | |
"filtered": { | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"more_like_this": { | |
"fields": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"aggs": { | |
"album_agg": { | |
"terms": { | |
"field": "album", | |
"order": { | |
"top_score": "desc" | |
} | |
}, | |
"aggs": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tenth, 10th: | |
locale: English | |
note: Added and approved ordinal number set. AFF 10/7/14 | |
status: Approved | |
visas, visa: | |
locale: Spanish | |
note: Approved AFF 2/6/14. | |
status: Approved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tenth, 10th: | |
note: Added and approved ordinal number set. AFF 10/7/14 | |
status: Approved | |
ninth, 9th: | |
note: Added and approved ordinal number set. AFF 10/7/14 | |
status: Approved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# verify we are allowing unmapped fields | |
curl -s -XGET '/_nodes?pretty=true' | grep allow_unmapped | |
# "allow_unmapped_fields" : "true" | |
# delete the index | |
curl -XDELETE 127.0.0.1:9200/test1 | |
# create index with explicit mapping only for user field | |
curl -XPUT 127.0.0.1:9200/test1 -d ' | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["DE","UK","US","FR"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# WARNING: REQUIRES /bin/sh | |
# | |
# - must run on /bin/sh on solaris 9 | |
# - must run on /bin/sh on AIX 6.x | |
# | |
# Copyright:: Copyright (c) 2010-2015 Chef Software, Inc. | |
# License:: Apache License, Version 2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults | |
log global | |
mode tcp | |
contimeout 50000000 | |
clitimeout 50000000 | |
srvtimeout 50000000 | |
errorfile 400 /etc/haproxy/errors/400.http | |
errorfile 403 /etc/haproxy/errors/403.http | |
errorfile 408 /etc/haproxy/errors/408.http | |
errorfile 500 /etc/haproxy/errors/500.http |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "haproxy", | |
"mem": 128, | |
"cpus": 0.5, | |
"requirePorts": true, | |
"instances": 1, | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"network": "HOST", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat > /etc/sysctl.d/01-elastic.conf << END | |
vm.max_map_count=262144 | |
END | |
cat > /etc/security/limits.d/30-elastic.conf << END | |
centos - nofile 65536 | |
centos soft memlock unlimited | |
centos hard memlock unlimited |