Java API doc issues: Search


(larrry) #1

When I use the code provided in the search API docs, there are a couple minor issues.

The code is missing a qualifier for the constant DFS_QUERY_THEN_FETCH. I changed it to SearchType.DFS_QUERY_THEN_FETCH and it's fine.

The code is missing a closing parenthesis, apparently before .actionGet().

The original code snippet is below:

SearchResponse response = client.search(searchRequest("test")
.searchType(DFS_QUERY_THEN_FETCH)
.source(searchSource()
.query(termQuery("multi", "test"))
.from(0).size(60).explain(true))
.actionGet();


(system) #2