Permalink
Browse files

Merge pull request #133 from dadoonet/patch-13

Example and links are incorrects for DeleteByQuery java API
  • Loading branch information...
2 parents 6cc3ec7 + 83f39da commit 55f0ffb756315c9eee467054f02b138f03d9fb63 @kimchy kimchy committed Jan 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 guide/reference/java-api/delete-by-query.textile
@@ -5,12 +5,12 @@ cat: guide
sidebar: reference_java_api
---
-p. The delete by query API allows to delete documents from one or more indices and one or more types based on a query. The query can either be provided the "Query DSL":../query_dsl. Here is an example:
+p. The delete by query API allows to delete documents from one or more indices and one or more types based on a query. The query can either be provided the "Query DSL":../query-dsl/. Here is an example:
<pre class="prettyprint lang-java">
-import static org.elasticsearch.index.query.xcontent.FilterBuilders.*;
-import static org.elasticsearch.index.query.xcontent.QueryBuilders.*;
+import static org.elasticsearch.index.query.FilterBuilders.*;
+import static org.elasticsearch.index.query.QueryBuilders.*;
DeleteByQueryResponse response = client.prepareDeleteByQuery("test")
.setQuery(termQuery("_type", "type1"))

0 comments on commit 55f0ffb

Please sign in to comment.