mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-02 08:59:09 +00:00
parent
f5366da0bf
commit
4a308a0223
@ -106,7 +106,6 @@ public class JavaScriptScriptSearchTests extends ElasticsearchIntegrationTest {
|
|||||||
|
|
||||||
SearchResponse response = client().prepareSearch()
|
SearchResponse response = client().prepareSearch()
|
||||||
.setQuery(matchAllQuery())
|
.setQuery(matchAllQuery())
|
||||||
.addField("_source.obj1") // we also automatically detect _source in fields
|
|
||||||
.addScriptField("s_obj1", "js", "_source.obj1", null)
|
.addScriptField("s_obj1", "js", "_source.obj1", null)
|
||||||
.addScriptField("s_obj1_test", "js", "_source.obj1.test", null)
|
.addScriptField("s_obj1_test", "js", "_source.obj1.test", null)
|
||||||
.addScriptField("s_obj2", "js", "_source.obj2", null)
|
.addScriptField("s_obj2", "js", "_source.obj2", null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user