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
curl -XDELETE "http://localhost:9200/test_close?pretty=true" | |
# Create an index with a bunch of shards which should take a while | |
curl -XPOST "http://localhost:9200/test_close?pretty=true" -d '{ | |
"settings": { | |
"number_of_shards": 1024, | |
"number_of_replicas": 3 | |
} | |
}' | |
# Close the index real fast | |
curl -XPOST "http://localhost:9200/test_close/_close?pretty=true" |
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
# Launch two nodes | |
curl -XDELETE "http://localhost:9200/test_close?pretty=true" | |
# Create more replicas then we have nodes | |
curl -XPOST "http://localhost:9200/test_close?pretty=true" -d '{ | |
"settings": { | |
"number_of_shards": 5, | |
"number_of_replicas": 3 | |
} | |
}' | |
# Wait until all the shards that are going to allocate have allocated |
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
# This works as expected: | |
# Cleanly launch three nodes | |
rm -rf data/elasticsearch/nodes/* | |
./bin/elasticsearch -p es1.pid | |
./bin/elasticsearch -p es2.pid | |
./bin/elasticsearch -p es3.pid | |
sleep 10 | |
curl -XGET "http://localhost:9200/_cluster/health?pretty=true&wait_for_nodes=3" | |
# Create more replicas then we have nodes | |
curl -XPOST "http://localhost:9200/test_close?pretty=true" -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
curl -XDELETE "http://localhost:9200/test?pretty" | |
curl -XPOST "http://localhost:9200/test?pretty" -d '{ | |
"settings": { | |
"index": { | |
"number_of_shards": 1, | |
"number_of_replicas": 0 | |
} | |
} | |
}' |
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 | |
curl -XDELETE "http://localhost:9200/test?pretty" -s > log | |
curl -XPOST "http://localhost:9200/test?pretty" -s -d '{ | |
"settings": { | |
"index": { | |
"number_of_shards": 5, | |
"number_of_replicas": 0, | |
"analysis":{ | |
"analyzer":{ |
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 | |
curl -XDELETE http://localhost:9200/test?pretty | |
curl -XPUT http://localhost:9200/test?pretty | |
curl -XPUT http://localhost:9200/test/test/_mapping?pretty -d'{ | |
"test" : { | |
"properties": { | |
"text" : { | |
"type": "string", | |
"store": "yes", |
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 | |
curl -XDELETE "http://localhost:9200/test?pretty" -s | |
curl -XPOST "http://localhost:9200/test?pretty" -s | |
curl -XPUT http://localhost:9200/test/test/_mapping?pretty -d'{ | |
"test" : { | |
"properties": { | |
"foo" : { | |
"type": "multi_field", | |
"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
#!/bin/bash | |
curl -XDELETE "http://localhost:9200/test?pretty" -s | |
curl -XPOST "http://localhost:9200/test?pretty" -s | |
curl -XGET 'http://localhost:9200/_cluster/health?pretty=true&wait_for_status=yellow' | |
curl -XPOST "http://localhost:9200/test/test/1?pretty" -d '{"foo": "findme"}' | |
curl -XPOST "http://localhost:9200/test/test/2?pretty" -d '{"bar": "findme"}' | |
curl -XPOST http://localhost:9200/test/_refresh?pretty |
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 | |
curl -XDELETE "http://localhost:9200/test?pretty" -s | |
curl -XPOST "http://localhost:9200/test?pretty" -s | |
curl -XPOST "http://localhost:9200/test?pretty" -s | |
curl -XPUT http://localhost:9200/test/test/_mapping?pretty -d'{ | |
"test" : { | |
"properties": { | |
"foo" : { | |
"type": "string", |
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
<testsuite errors="15" failures="2" tests="15" skipped="0" name="org.elasticsearch.search.facet.termsstats.ShardSizeTermsStatsFacetTests" hostname="nohost.nodomain" time="381.23" timestamp="2014-02-10T10:50:52"> | |
<properties class="java.util.ArrayList"> | |
<property name="awt.toolkit" value="sun.awt.X11.XToolkit"/> | |
<property name="es.logger.level" value="INFO"/> | |
<property name="es.logger.prefix" value=""/> | |
<property name="es.node.local" value=""/> | |
<property name="es.node.mode" value=""/> | |
<property name="file.encoding" value="UTF-8"/> | |
<property name="file.encoding.pkg" value="sun.io"/> | |
<property name="file.separator" value="/"/> |
OlderNewer