mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-26 08:07:27 -04:00
Update java source example
From the version 1.0 FilterBuilders and QueryBuilders are not part from org.elasticsearch.index.query.xcontent package no more. Closes #7701.
This commit is contained in:
parent
98c9bc593d
commit
32d4200397
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@ and across one or more types. The query can be provided using the
|
||||||
|
|
||||||
[source,java]
|
[source,java]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
import static org.elasticsearch.index.query.xcontent.FilterBuilders.*;
|
import static org.elasticsearch.index.query.FilterBuilders.*;
|
||||||
import static org.elasticsearch.index.query.xcontent.QueryBuilders.*;
|
import static org.elasticsearch.index.query.QueryBuilders.*;
|
||||||
|
|
||||||
CountResponse response = client.prepareCount("test")
|
CountResponse response = client.prepareCount("test")
|
||||||
.setQuery(termQuery("_type", "type1"))
|
.setQuery(termQuery("_type", "type1"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue