Package kr.jm.utils.elasticsearch
Class JMElasticsearchSearchAndCount
- java.lang.Object
-
- kr.jm.utils.elasticsearch.JMElasticsearchSearchAndCount
-
public class JMElasticsearchSearchAndCount extends Object
The type Jm elasticsearch search and count.
-
-
Constructor Summary
Constructors Constructor Description JMElasticsearchSearchAndCount(org.elasticsearch.client.Client elasticsearchClient)Instantiates a new Jm elasticsearch search and count.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount(String... indices)Count long.longcount(String[] indices, String[] types)Count long.longcount(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Count long.longcountQuery(org.elasticsearch.action.search.SearchRequestBuilder countRequestBuilder)Count query long.longcountQuery(org.elasticsearch.action.search.SearchRequestBuilder countRequestBuilder, long timeoutMillis)Count query long.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(boolean isSetExplain, String[] indices)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(boolean isSetExplain, String[] indices, String[] types)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder queryBuilder)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder[] mustConditionQueryBuilders, org.elasticsearch.index.query.QueryBuilder[] filterConditionQueryBuilders, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder queryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(boolean isSetExplain, org.elasticsearch.index.query.QueryBuilder queryBuilder, String... indices)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder queryBuilder)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder queryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(org.elasticsearch.index.query.QueryBuilder queryBuilder, String... indices)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilder(org.elasticsearch.index.query.QueryBuilder queryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders, String... indices)Gets search request builder.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilderWithMatchAll(boolean isSetExplain, String[] indices)Gets search request builder with match all.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilderWithMatchAll(boolean isSetExplain, String[] indices, String[] types)Gets search request builder with match all.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilderWithMatchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Gets search request builder with match all.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilderWithMatchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder with match all.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilderWithMatchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder with match all.org.elasticsearch.action.search.SearchRequestBuildergetSearchRequestBuilderWithMatchAll(boolean isSetExplain, String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Gets search request builder with match all.org.elasticsearch.action.search.SearchResponsesearchAll(boolean isSetExplain, String[] indices)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(boolean isSetExplain, String[] indices, String[] types)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(String... indices)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(String[] indices, String type)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(String[] indices, String[] types)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(String index, String type)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAll(String index, String type, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all search response.org.elasticsearch.action.search.SearchResponsesearchAllWithTargetCount(String... indices)Search all with target count search response.org.elasticsearch.action.search.SearchResponsesearchAllWithTargetCount(String[] indices, String[] types)Search all with target count search response.org.elasticsearch.action.search.SearchResponsesearchAllWithTargetCount(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Search all with target count search response.org.elasticsearch.action.search.SearchResponsesearchAllWithTargetCount(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all with target count search response.org.elasticsearch.action.search.SearchResponsesearchAllWithTargetCount(String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all with target count search response.org.elasticsearch.action.search.SearchResponsesearchAllWithTargetCount(String index, String type)Search all with target count search response.org.elasticsearch.action.search.SearchResponsesearchAllWithTargetCount(String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Search all with target count search response.org.elasticsearch.action.search.SearchResponsesearchAllWithTargetCount(String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all with target count search response.org.elasticsearch.action.search.SearchResponsesearchAllWithTargetCount(String index, String type, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all with target count search response.org.elasticsearch.action.search.SearchResponsesearchQuery(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder)Search query search response.org.elasticsearch.action.search.SearchResponsesearchQuery(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder, long timeoutMillis)Search query search response.org.elasticsearch.action.search.SearchResponsesearchWithTargetCount(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder[] mustConditionQueryBuilders, org.elasticsearch.index.query.QueryBuilder[] filterConditionQueryBuilders)Search with target count search response.org.elasticsearch.action.search.SearchResponsesearchWithTargetCount(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder[] mustConditionQueryBuilders, org.elasticsearch.index.query.QueryBuilder[] filterConditionQueryBuilders, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search with target count search response.org.elasticsearch.action.search.SearchResponsesearchWithTargetCount(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder)Search with target count search response.org.elasticsearch.action.search.SearchResponsesearchWithTargetCount(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search with target count search response.
-
-
-
Method Detail
-
searchWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchWithTargetCount(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder)
Search with target count search response.- Parameters:
searchRequestBuilder- the search request builder- Returns:
- the search response
-
searchWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchWithTargetCount(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search with target count search response.- Parameters:
searchRequestBuilder- the search request builderaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchWithTargetCount(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder[] mustConditionQueryBuilders, org.elasticsearch.index.query.QueryBuilder[] filterConditionQueryBuilders)Search with target count search response.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesmustConditionQueryBuilders- the must condition query buildersfilterConditionQueryBuilders- the filter condition query builders- Returns:
- the search response
-
searchWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchWithTargetCount(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder[] mustConditionQueryBuilders, org.elasticsearch.index.query.QueryBuilder[] filterConditionQueryBuilders, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search with target count search response.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesmustConditionQueryBuilders- the must condition query buildersfilterConditionQueryBuilders- the filter condition query buildersaggregationBuilders- the aggregation builders- Returns:
- the search response
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(org.elasticsearch.index.query.QueryBuilder queryBuilder, String... indices)Gets search request builder.- Parameters:
queryBuilder- the query builderindices- the indices- Returns:
- the search request builder
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(org.elasticsearch.index.query.QueryBuilder queryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders, String... indices)Gets search request builder.- Parameters:
queryBuilder- the query builderaggregationBuilders- the aggregation buildersindices- the indices- Returns:
- the search request builder
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder queryBuilder)
Gets search request builder.- Parameters:
indices- the indicestypes- the typesqueryBuilder- the query builder- Returns:
- the search request builder
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder queryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
Gets search request builder.- Parameters:
indices- the indicestypes- the typesqueryBuilder- the query builderaggregationBuilders- the aggregation builders- Returns:
- the search request builder
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder.- Parameters:
searchRequestBuilder- the search request builderaggregationBuilders- the aggregation builders- Returns:
- the search request builder
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder[] mustConditionQueryBuilders, org.elasticsearch.index.query.QueryBuilder[] filterConditionQueryBuilders, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesmustConditionQueryBuilders- the must condition query buildersfilterConditionQueryBuilders- the filter condition query buildersaggregationBuilders- the aggregation builders- Returns:
- the search request builder
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(boolean isSetExplain, String[] indices)Gets search request builder.- Parameters:
isSetExplain- the is set explainindices- the indices- Returns:
- the search request builder
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(boolean isSetExplain, String[] indices, String[] types)Gets search request builder.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the types- Returns:
- the search request builder
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder queryBuilder)Gets search request builder.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesqueryBuilder- the query builder- Returns:
- the search request builder
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(boolean isSetExplain, org.elasticsearch.index.query.QueryBuilder queryBuilder, String... indices)Gets search request builder.- Parameters:
isSetExplain- the is set explainqueryBuilder- the query builderindices- the indices- Returns:
- the search request builder
-
getSearchRequestBuilder
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder queryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesqueryBuilder- the query builderaggregationBuilders- the aggregation builders- Returns:
- the search request builder
-
getSearchRequestBuilderWithMatchAll
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilderWithMatchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder with match all.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesfilterQueryBuilder- the filter query builderaggregationBuilders- the aggregation builders- Returns:
- the search request builder with match all
-
getSearchRequestBuilderWithMatchAll
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilderWithMatchAll(boolean isSetExplain, String[] indices, String[] types)Gets search request builder with match all.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the types- Returns:
- the search request builder with match all
-
getSearchRequestBuilderWithMatchAll
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilderWithMatchAll(boolean isSetExplain, String[] indices)Gets search request builder with match all.- Parameters:
isSetExplain- the is set explainindices- the indices- Returns:
- the search request builder with match all
-
getSearchRequestBuilderWithMatchAll
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilderWithMatchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Gets search request builder with match all.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesfilterQueryBuilder- the filter query builder- Returns:
- the search request builder with match all
-
getSearchRequestBuilderWithMatchAll
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilderWithMatchAll(boolean isSetExplain, String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Gets search request builder with match all.- Parameters:
isSetExplain- the is set explainindex- the indextype- the typefilterQueryBuilder- the filter query builder- Returns:
- the search request builder with match all
-
getSearchRequestBuilderWithMatchAll
public org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilderWithMatchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Gets search request builder with match all.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesaggregationBuilders- the aggregation builders- Returns:
- the search request builder with match all
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
Search all search response.- Parameters:
indices- the indicestypes- the typesaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(String[] indices, String[] types)
Search all search response.- Parameters:
indices- the indicestypes- the types- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(String[] indices, String type)
Search all search response.- Parameters:
indices- the indicestype- the type- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(String... indices)
Search all search response.- Parameters:
indices- the indices- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
Search all search response.- Parameters:
index- the indextype- the typefilterQueryBuilder- the filter query builderaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
Search all search response.- Parameters:
index- the indextype- the typefilterQueryBuilder- the filter query builder- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(String index, String type, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
Search all search response.- Parameters:
index- the indextype- the typeaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(String index, String type)
Search all search response.- Parameters:
index- the indextype- the type- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
Search all search response.- Parameters:
indices- the indicestypes- the typesfilterQueryBuilder- the filter query builder- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
Search all search response.- Parameters:
indices- the indicestypes- the typesfilterQueryBuilder- the filter query builderaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(boolean isSetExplain, String[] indices)Search all search response.- Parameters:
isSetExplain- the is set explainindices- the indices- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(boolean isSetExplain, String[] indices, String[] types)Search all search response.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the types- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all search response.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)Search all search response.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesfilterQueryBuilder- the filter query builder- Returns:
- the search response
-
searchAll
public org.elasticsearch.action.search.SearchResponse searchAll(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)Search all search response.- Parameters:
isSetExplain- the is set explainindices- the indicestypes- the typesfilterQueryBuilder- the filter query builderaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchAllWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount(String[] indices, String[] types)
Search all with target count search response.- Parameters:
indices- the indicestypes- the types- Returns:
- the search response
-
searchAllWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
Search all with target count search response.- Parameters:
indices- the indicestypes- the typesfilterQueryBuilder- the filter query builder- Returns:
- the search response
-
searchAllWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount(String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
Search all with target count search response.- Parameters:
indices- the indicestypes- the typesaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchAllWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount(String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
Search all with target count search response.- Parameters:
index- the indextype- the typefilterQueryBuilder- the filter query builder- Returns:
- the search response
-
searchAllWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount(String index, String type, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
Search all with target count search response.- Parameters:
index- the indextype- the typeaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchAllWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount(String index, String type)
Search all with target count search response.- Parameters:
index- the indextype- the type- Returns:
- the search response
-
searchAllWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount(String... indices)
Search all with target count search response.- Parameters:
indices- the indices- Returns:
- the search response
-
searchAllWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount(String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
Search all with target count search response.- Parameters:
index- the indextype- the typefilterQueryBuilder- the filter query builderaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchAllWithTargetCount
public org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
Search all with target count search response.- Parameters:
indices- the indicestypes- the typesfilterQueryBuilder- the filter query builderaggregationBuilders- the aggregation builders- Returns:
- the search response
-
searchQuery
public org.elasticsearch.action.search.SearchResponse searchQuery(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder)
Search query search response.- Parameters:
searchRequestBuilder- the search request builder- Returns:
- the search response
-
searchQuery
public org.elasticsearch.action.search.SearchResponse searchQuery(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder, long timeoutMillis)Search query search response.- Parameters:
searchRequestBuilder- the search request buildertimeoutMillis- the timeout millis- Returns:
- the search response
-
countQuery
public long countQuery(org.elasticsearch.action.search.SearchRequestBuilder countRequestBuilder)
Count query long.- Parameters:
countRequestBuilder- the count request builder- Returns:
- the long
-
countQuery
public long countQuery(org.elasticsearch.action.search.SearchRequestBuilder countRequestBuilder, long timeoutMillis)Count query long.- Parameters:
countRequestBuilder- the count request buildertimeoutMillis- the timeout millis- Returns:
- the long
-
count
public long count(String... indices)
Count long.- Parameters:
indices- the indices- Returns:
- the long
-
count
public long count(String[] indices, String[] types)
Count long.- Parameters:
indices- the indicestypes- the types- Returns:
- the long
-
-