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 ="test")
.query(termQuery("multi", "test"))

(system) #2