Skip to content

Instantly share code, notes, and snippets.

Thread [TEST-DecayFunctionScoreTests.testBoostModeSettingWorks-seed#[566D4516876EE0AF]] (Suspended (breakpoint at line 34 in ElasticSearchParseException))
owns: Class<T> (org.elasticsearch.common.inject.InjectorImpl) (id=3217)
owns: TestCluster (id=3748)
ElasticSearchParseException.<init>(String, Throwable) line: 34
ByteSizeValue.parseBytesSizeValue(String, ByteSizeValue) line: 164
ByteSizeValue.parseBytesSizeValue(String) line: 137
DiskThresholdDecider.thresholdBytesFromWatermark(String) line: 319
DiskThresholdDecider.<init>(Settings, NodeSettingsService) line: 128
NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: not available [native method]
NativeConstructorAccessorImpl.newInstance(Object[]) line: 57
@brwe
brwe / gist:7056487
Created October 19, 2013 14:18
function score example that checks for words in a multi valued field and adds 1 if the word was found.
curl -XPOST "http://localhost:9200/scorescripttest/test/" -d'
{
"tags": [
"dressing room",
"zebrawood",
"wood",
"oak",
"on your person",
"seating",
"chair",
@brwe
brwe / function_score_queries.json
Created October 18, 2013 22:58
Sense input for `function_score` screencast.
POST hire-wire/programmer/_search
POST hire-wire/programmer/_search
{
"script_fields": {
"distance_from_berlin": {
"script": "doc['home'].arcDistanceInKm(52.5,13.5)"
}
},
"fields": [