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
The current documentation for the Java API client is out of date. It shows an example with the following code:
SearchForHits request = new SearchForHits()
.setIndexName("<YOUR_INDEX_NAME>")
.setQuery("my aloglia ojbect");
SearchMethodParams params = new SearchMethodParams().addRequests(request);
SearchResponses responses = client.search(params);
System.out.println(responses);
This will fail because as of #2413 the client.search method now requires two parameters. It's not clear from the javadoc of this function what value for the second parameter innerType is expected.
Please give documentation which is up to date and describes how to use generics. Alternatively please give documentation how how to use the client library without using generics.
The text was updated successfully, but these errors were encountered:
The current documentation for the Java API client is out of date. It shows an example with the following code:
This will fail because as of #2413 the
client.search
method now requires two parameters. It's not clear from the javadoc of this function what value for the second parameterinnerType
is expected.Please give documentation which is up to date and describes how to use generics. Alternatively please give documentation how how to use the client library without using generics.
The text was updated successfully, but these errors were encountered: