Skip to content

Commit 4a308a0

Browse files
committed
Remove _source.obj1
Related to #14.
1 parent f5366da commit 4a308a0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/test/java/org/elasticsearch/script/javascript/JavaScriptScriptSearchTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public void testScriptFieldUsingSource() throws Exception {
106106

107107
SearchResponse response = client().prepareSearch()
108108
.setQuery(matchAllQuery())
109-
.addField("_source.obj1") // we also automatically detect _source in fields
110109
.addScriptField("s_obj1", "js", "_source.obj1", null)
111110
.addScriptField("s_obj1_test", "js", "_source.obj1.test", null)
112111
.addScriptField("s_obj2", "js", "_source.obj2", null)

0 commit comments

Comments
 (0)