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
POST hire-wire/programmer/_search | |
POST hire-wire/programmer/_search | |
{ | |
"script_fields": { | |
"distance_from_berlin": { | |
"script": "doc['home'].arcDistanceInKm(52.5,13.5)" | |
} | |
}, | |
"fields": [ |
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 -XPOST "http://localhost:9200/scorescripttest/test/" -d' | |
{ | |
"tags": [ | |
"dressing room", | |
"zebrawood", | |
"wood", | |
"oak", | |
"on your person", | |
"seating", | |
"chair", |
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
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 |
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
#init data | |
DELETE testtags/ | |
POST testtags/ | |
{ | |
"settings" : { | |
"index" : { | |
"number_of_shards" : 1, | |
"number_of_replicas" : 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
DELETE testtags | |
POST testtags | |
{ | |
"settings" : { | |
"index" : { | |
"number_of_shards" : 1, | |
"number_of_replicas" : 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
DELETE testindex | |
PUT testindex | |
# STEP 1: Add mappings for afield.number and afield.text | |
PUT /testindex/sometype/_mapping | |
{ | |
"sometype": { | |
"properties": { | |
"afield.number": { |
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
# Terms aggregations | |
POST reuters/_search | |
# aggregate on places - how many articles per country? | |
POST reuters-test/_search | |
{ | |
"size": 0, | |
"aggregations": { | |
"class": { |
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
import elasticsearch | |
es = elasticsearch.Elasticsearch() | |
for i in range(10000): | |
es.index(index="testidx", doc_type="doc", id=i, body= "{\"testfield\":\"a\"}") | |
es.indices.refresh() | |
for i in range(10000): | |
updateScript = "ctx._source.testfield += \" " + str(i) + "\"" |
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
<graph id="Graph"> | |
<version>1.0</version> | |
<!-- usage example: | |
/usr/local/snap/bin/gpt all-steps.xml -Pinput=PATH_TO_MANIFEST_FILE/manifest.safe -Pvh_result_file_name=PATH_TO_RESULT_FILE/vh.tif -Pvv_result_file_name=PATH_TO_RESULT_FILE/vv.tif | |
--> | |
<node id="Read"> | |
<operator>Read</operator> | |
<sources/> | |
<parameters class="com.bc.ceres.binding.dom.XppDomElement"> | |
<file>${input}</file> |
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
--2021-05-20 11:13:34-- https://download.esa.int/step/snap/8.0/installers/esa-snap_all_unix_8_0.sh | |
Resolving download.esa.int (download.esa.int)... 157.185.179.197 | |
Connecting to download.esa.int (download.esa.int)|157.185.179.197|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 981541327 (936M) [application/octet-stream] | |
Saving to: ‘esa-snap_all_unix_8_0.sh.2’ | |
esa-snap_all_unix_8_0.sh.2 100%[===============================================================================================================>] 936.07M 1.09MB/s in 15m 58s | |
2021-05-20 11:29:33 (1001 KB/s) - ‘esa-snap_all_unix_8_0.sh.2’ saved [981541327/981541327] |
OlderNewer