The base class to use is For example, to perform queries on the SearchAPIClient client = SearchAPIClientFactory.build("http://localhost:10010"); SearchClient searchClient = client.searchClient("search-api"); SearchQuery sq = new SearchQuery("my test query"); SearchAnswer sa = searchClient.getResults(sq); The
For more information, see the Exalead CloudView Public APIs Java SDK documentation. Note:
The
SearchClient object is thread safe. Use only one instance of the
SearchClient for your whole program. It ensures that the HTTP connections
are alive, to maintain request queueing without establishing useless connections to the
service. To release the connections, call the close() method on the
SearchClient instance. |