You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2022. It is now read-only.
* Choose which fields the response will contain. Applies to search and browse queries.
1175
+
* <p>
1176
+
* By default, all fields are returned. If this parameter is specified, only the fields explicitly listed will be returned, unless * is used, in which case all fields are returned. Specifying an empty list or unknown field names is an error.
assertTrue("The built query should contain \"" + expected + "\", but contains _" + queryStr + "_.", queryStr.contains(expected));
764
+
765
+
query.setResponseFields("hits", "page");
766
+
assertEquals("After setting its responseFields to [\"hits\",\"page\"], getResponseFields should contain two elements.", 2, query.getResponseFields().length);
767
+
assertEquals("After setting its responseFields to [\"hits\",\"page\"], getResponseFields should contain \"hits\".", "hits", query.getResponseFields()[0]);
768
+
assertEquals("After setting its responseFields to [\"hits\",\"page\"], getResponseFields should contain \"page\".", "page", query.getResponseFields()[1]);
0 commit comments