This file contains hidden or 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
{ | |
"template": "logstash-*", | |
"settings" : { | |
"number_of_shards" : 1, | |
"number_of_replicas" : 0, | |
"index" : { | |
"query" : { "default_field" : "@message" }, | |
"store" : { "compress" : { "stored" : true, "tv": true } } | |
} | |
}, |
This file contains hidden or 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
[2012-01-05 16:02:32,693][WARN ][river.couchdb ] [Asmodeus] [couchdb][database_type1] failed to executefailure in bulk execution: | |
[0]: index [database], type [type1], id [030cc472426e451a6d5e6b0e15000988], message [VersionConflictEngineException[[database][2] [type1][030cc472426e451a6d5e6b0e15000988]: version conflict, current [-1], required [1]]] | |
[2012-01-05 16:03:17,193][DEBUG][action.bulk ] [Asmodeus] [database][0] failed to bulk item (delete) delete {[database][type1][030cc472426e451a6d5e6b0e15000c80]} | |
org.elasticsearch.index.engine.VersionConflictEngineException: [database][0] [type1][030cc472426e451a6d5e6b0e15000c80]: version conflict, current [-1], required [2] | |
at org.elasticsearch.index.engine.robin.RobinEngine.innerDelete(RobinEngine.java:646) | |
at org.elasticsearch.index.engine.robin.RobinEngine.delete(RobinEngine.java:597) | |
at org.elasticsearch.index.shard.service.InternalIndexShard.delete(InternalIndexShard.java:336) | |
at org.elasticsearch.action.bulk.TransportShardBulkActio |
This file contains hidden or 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 -XPUT 'http://localhost:9200/nested_test/' -d ' | |
index : | |
number_of_shards : 5 | |
number_of_replicas : 0 | |
' | |
curl -XPUT 'http://localhost:9200/nested_test/nested/_mapping' -d '{"type1":{"properties":{"obj1":{"type":"nested"}}}}' | |
curl -XPOST 'http://localhost:9200/nested_test/nested/' -d '{"obj1":[{"name":"blue",count:4},{"name":"green",count:6}]}' | |
curl -XGET 'http://localhost:9200/nested_test/nested/_search?pretty=true' -d'{"query":{"nested": { "path":"obj1"}}}}' | |
curl -XGET 'http://localhost:9200/nested_test/nested/_search?pretty=true' -d'{"query":{"nested": { "path":"obj1", "query": { "match_all":{}}}}}' |
This file contains hidden or 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
{ | |
"rating": { | |
"properties" : { | |
"system" : { | |
"type" : "string", | |
"index" : "not_analyzed" | |
}, | |
"value" : { | |
"type" : "float", | |
"null_value" : 0, |
This file contains hidden or 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
[2011-07-20 11:03:30,092][DEBUG][action.search.type ] [Legacy] [testindex][2], node[TkPym95HQiCgYGU1qRcX_w], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@fa09c82] | |
java.lang.NullPointerException | |
at org.elasticsearch.search.facet.FacetPhase.execute(FacetPhase.java:139) | |
at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:226) | |
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:223) | |
at org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:134) | |
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:76) | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:201) | |
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.access$000(TransportSearchTypeAction.java:81) | |
at org.e |
This file contains hidden or 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 -S -XDELETE http://localhost:9200/testindex > /dev/null | |
curl -S -XPUT http://localhost:9200/testindex > /dev/null | |
curl -XPOST http://localhost:9200/testindex/_search?pretty=true -d '{ | |
"query" : { "match_all" : {} }, | |
"facets" : { | |
"tags" : { | |
"field" : "tag", | |
"size" : 3 |
This file contains hidden or 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
{ | |
"exception" : { | |
"message" : "Exceptional circumstances", | |
"stackTrace" : [ | |
{ "file" : "Test.java", "class" : "Test", "method" : "foo", "line" : 100, "native" : false }, | |
{ "file" : "Test.java", "class" : "Test", "method" : "bar", "line" : 99, "native" : false } | |
], | |
"causedBy" : { | |
"message" : "Special Circumstances", | |
"stackTrace" : [ |
NewerOlder