diff --git a/docs/java-api/search.asciidoc b/docs/java-api/search.asciidoc index 8f5ab2e391d..5cb27b4e36a 100644 --- a/docs/java-api/search.asciidoc +++ b/docs/java-api/search.asciidoc @@ -23,7 +23,7 @@ SearchResponse response = client.prepareSearch("index1", "index2") .setTypes("type1", "type2") .setSearchType(SearchType.DFS_QUERY_THEN_FETCH) .setQuery(QueryBuilders.termQuery("multi", "test")) // Query - .setFilter(FilterBuilders.rangeFilter("age").from(12).to(18)) // Filter + .setPostFilter(FilterBuilders.rangeFilter("age").from(12).to(18)) // Filter .setFrom(0).setSize(60).setExplain(true) .execute() .actionGet();