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 -HContent-Type:application/json -uelastic:password localhost:9200/_search?pretty -d'{ | |
> "size": 0, | |
> "query": { | |
> "range": { | |
> "TMAX": { | |
> "gt": -90, | |
> "lt": 50 | |
> } | |
> } | |
> }, |
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
diff --git a/modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessScriptEngine.java b/modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessScriptEngine.java | |
index 13dfec9e7dd..743597b3853 100644 | |
--- a/modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessScriptEngine.java | |
+++ b/modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessScriptEngine.java | |
@@ -341,6 +341,24 @@ public final class PainlessScriptEngine implements ScriptEngine { | |
deterAdapter.returnValue(); | |
deterAdapter.endMethod(); | |
+ org.objectweb.asm.commons.Method docFields = new org.objectweb.asm.commons.Method(methodName, | |
+ MethodType.methodType(List.class).toMethodDescriptorString()); |
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
```[2020-07-28T08:31:18,340][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [runTask-0] fatal error in thread [elasticsearch[runTask-0][search][T#1]], exiting | |
java.lang.StackOverflowError: null | |
at com.fasterxml.jackson.core.json.UTF8JsonGenerator.writeString(UTF8JsonGenerator.java:494) ~[jackson-core-2.10.4.jar:2.10.4] | |
at org.elasticsearch.common.xcontent.json.JsonXContentGenerator.writeString(JsonXContentGenerator.java:281) ~[elasticsearch-x-content-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT] | |
at org.elasticsearch.common.xcontent.XContentBuilder.value(XContentBuilder.java:660) ~[elasticsearch-x-content-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT] | |
at org.elasticsearch.common.xcontent.XContentBuilder.lambda$static$13(XContentBuilder.java:101) ~[elasticsearch-x-content-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT] | |
at org.elasticsearch.common.xcontent.XContentBuilder.unknownValue(XContentBuilder.java:815) ~[elasticsearch-x-content-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT] | |
at org.elasticsearch.comm |
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
diff --git a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollector.java b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollector.java | |
index a36fb64c3f1..db2a4b4df16 100644 | |
--- a/server/src/main/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollector.java | |
+++ b/server/src/main/java/org/elasticsearch/search/aggregations/bucket/MergingBucketsDeferringCollector.java | |
@@ -138,19 +138,4 @@ public class MergingBucketsDeferringCollector extends BestBucketsDeferringCollec | |
bucketsBuilder = newBuckets; | |
} | |
} | |
- | |
- /** |
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
# This causes a problem with merging mappings | |
curl -XDELETE -u elastic:password localhost:9200/sensor?pretty | |
curl -XPUT -HContent-Type:application/json -u elastic:password localhost:9200/sensor?pretty -d'{ | |
"mappings": { | |
"properties": { | |
"timestamp": {"type": "date"}, | |
"node": {"type": "keyword"}, | |
"day_of_week": { | |
"type": "script", |
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
// In the mapping | |
PUT /my-index | |
{ | |
"mappings": { | |
"properties": { | |
"age": { "type": "integer", "script": "now - doc['date_of_birth'].value" }, | |
"classification": { "type": "keyword", "ml_model": "some_named_model" }, | |
"occupation": { // There is sipirited debate about whether or not this should be a thing. Check out occupation_2 for another idea to implement it. | |
"type": "keyword", | |
"lookup": { |
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
| Total Young Gen GC | | 0.217 | s | | |
| Total Old Gen GC | | 0 | s | | |
| Store size | | 6.14287 | GB | | |
| Translog size | | 5.12227e-08 | GB | | |
| Heap used for segments | | 0.622143 | MB | | |
| Heap used for doc values | | 0.23151 | MB | | |
| Heap used for terms | | 0.330872 | MB | | |
| |
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
| Total Young Gen GC | | 0.213 | s | | |
| Total Old Gen GC | | 0 | s | | |
| Store size | | 6.14287 | GB | | |
| Translog size | | 5.12227e-08 | GB | | |
| Heap used for segments | | 0.622143 | MB | | |
| Heap used for doc values | | 0.23151 | MB | | |
| Heap used for terms | | 0.330872 | MB | | |
| |
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 -HContent-Type:application/json 'localhost:9200/_search?size=0&pretty' -d'{ | |
"query": { | |
"range": { | |
"TMAX": { | |
"gt": -90, | |
"lt": 200 | |
} | |
} | |
}, | |
"aggs" : { |
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 -HContent-Type:application/json 'localhost:9200/_search?size=0&pretty' -d'{ | |
> "query": { | |
> "range": { | |
> "TMAX": { | |
> "gt": -90, | |
> "lt": 200 | |
> } | |
> } | |
> }, | |
> "aggs" : { |