Class 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
      long count​(String... indices)
      Count long.
      long count​(String[] indices, String[] types)
      Count long.
      long count​(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
      Count long.
      long countQuery​(org.elasticsearch.action.search.SearchRequestBuilder countRequestBuilder)
      Count query long.
      long countQuery​(org.elasticsearch.action.search.SearchRequestBuilder countRequestBuilder, long timeoutMillis)
      Count query long.
      org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder​(boolean isSetExplain, String[] indices)
      Gets search request builder.
      org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder​(boolean isSetExplain, String[] indices, String[] types)
      Gets search request builder.
      org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder​(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder queryBuilder)
      Gets search request builder.
      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.
      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.
      org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder​(boolean isSetExplain, org.elasticsearch.index.query.QueryBuilder queryBuilder, String... indices)
      Gets search request builder.
      org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder​(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder queryBuilder)
      Gets search request builder.
      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.
      org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder​(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
      Gets search request builder.
      org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder​(org.elasticsearch.index.query.QueryBuilder queryBuilder, String... indices)
      Gets search request builder.
      org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilder​(org.elasticsearch.index.query.QueryBuilder queryBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders, String... indices)
      Gets search request builder.
      org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilderWithMatchAll​(boolean isSetExplain, String[] indices)
      Gets search request builder with match all.
      org.elasticsearch.action.search.SearchRequestBuilder getSearchRequestBuilderWithMatchAll​(boolean isSetExplain, String[] indices, String[] types)
      Gets search request builder with match all.
      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.
      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.
      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.
      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.
      org.elasticsearch.action.search.SearchResponse searchAll​(boolean isSetExplain, String[] indices)
      Search all search response.
      org.elasticsearch.action.search.SearchResponse searchAll​(boolean isSetExplain, String[] indices, String[] types)
      Search all search response.
      org.elasticsearch.action.search.SearchResponse searchAll​(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
      Search all search response.
      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.
      org.elasticsearch.action.search.SearchResponse searchAll​(boolean isSetExplain, String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
      Search all search response.
      org.elasticsearch.action.search.SearchResponse searchAll​(String... indices)
      Search all search response.
      org.elasticsearch.action.search.SearchResponse searchAll​(String[] indices, String type)
      Search all search response.
      org.elasticsearch.action.search.SearchResponse searchAll​(String[] indices, String[] types)
      Search all search response.
      org.elasticsearch.action.search.SearchResponse searchAll​(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
      Search all search response.
      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.
      org.elasticsearch.action.search.SearchResponse searchAll​(String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
      Search all search response.
      org.elasticsearch.action.search.SearchResponse searchAll​(String index, String type)
      Search all search response.
      org.elasticsearch.action.search.SearchResponse searchAll​(String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
      Search all search response.
      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.
      org.elasticsearch.action.search.SearchResponse searchAll​(String index, String type, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
      Search all search response.
      org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount​(String... indices)
      Search all with target count search response.
      org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount​(String[] indices, String[] types)
      Search all with target count search response.
      org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount​(String[] indices, String[] types, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
      Search all with target count search response.
      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.
      org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount​(String[] indices, String[] types, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
      Search all with target count search response.
      org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount​(String index, String type)
      Search all with target count search response.
      org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount​(String index, String type, org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
      Search all with target count search response.
      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.
      org.elasticsearch.action.search.SearchResponse searchAllWithTargetCount​(String index, String type, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
      Search all with target count search response.
      org.elasticsearch.action.search.SearchResponse searchQuery​(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder)
      Search query search response.
      org.elasticsearch.action.search.SearchResponse searchQuery​(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder, long timeoutMillis)
      Search query search response.
      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.
      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.
      org.elasticsearch.action.search.SearchResponse searchWithTargetCount​(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder)
      Search with target count search response.
      org.elasticsearch.action.search.SearchResponse searchWithTargetCount​(org.elasticsearch.action.search.SearchRequestBuilder searchRequestBuilder, org.elasticsearch.search.aggregations.AggregationBuilder[] aggregationBuilders)
      Search with target count search response.
    • Constructor Detail

      • JMElasticsearchSearchAndCount

        public JMElasticsearchSearchAndCount​(org.elasticsearch.client.Client elasticsearchClient)
        Instantiates a new Jm elasticsearch search and count.
        Parameters:
        elasticsearchClient - the elasticsearch client
    • 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 builder
        aggregationBuilders - 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 explain
        indices - the indices
        types - the types
        mustConditionQueryBuilders - the must condition query builders
        filterConditionQueryBuilders - 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 explain
        indices - the indices
        types - the types
        mustConditionQueryBuilders - the must condition query builders
        filterConditionQueryBuilders - the filter condition query builders
        aggregationBuilders - 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 builder
        indices - 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 builder
        aggregationBuilders - the aggregation builders
        indices - 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 indices
        types - the types
        queryBuilder - 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 indices
        types - the types
        queryBuilder - the query builder
        aggregationBuilders - 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 builder
        aggregationBuilders - 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 explain
        indices - the indices
        types - the types
        mustConditionQueryBuilders - the must condition query builders
        filterConditionQueryBuilders - the filter condition query builders
        aggregationBuilders - 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 explain
        indices - 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 explain
        indices - the indices
        types - 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 explain
        indices - the indices
        types - the types
        queryBuilder - 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 explain
        queryBuilder - the query builder
        indices - 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 explain
        indices - the indices
        types - the types
        queryBuilder - the query builder
        aggregationBuilders - 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 explain
        indices - the indices
        types - the types
        filterQueryBuilder - the filter query builder
        aggregationBuilders - 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 explain
        indices - the indices
        types - 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 explain
        indices - 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 explain
        indices - the indices
        types - the types
        filterQueryBuilder - 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 explain
        index - the index
        type - the type
        filterQueryBuilder - 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 explain
        indices - the indices
        types - the types
        aggregationBuilders - 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 indices
        types - the types
        aggregationBuilders - 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 indices
        types - 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 indices
        type - 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 index
        type - the type
        filterQueryBuilder - the filter query builder
        aggregationBuilders - 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 index
        type - the type
        filterQueryBuilder - 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 index
        type - the type
        aggregationBuilders - 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 index
        type - 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 indices
        types - the types
        filterQueryBuilder - 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 indices
        types - the types
        filterQueryBuilder - the filter query builder
        aggregationBuilders - 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 explain
        indices - 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 explain
        indices - the indices
        types - 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 explain
        indices - the indices
        types - the types
        aggregationBuilders - 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 explain
        indices - the indices
        types - the types
        filterQueryBuilder - 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 explain
        indices - the indices
        types - the types
        filterQueryBuilder - the filter query builder
        aggregationBuilders - 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 indices
        types - 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 indices
        types - the types
        filterQueryBuilder - 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 indices
        types - the types
        aggregationBuilders - 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 index
        type - the type
        filterQueryBuilder - 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 index
        type - the type
        aggregationBuilders - 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 index
        type - 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 index
        type - the type
        filterQueryBuilder - the filter query builder
        aggregationBuilders - 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 indices
        types - the types
        filterQueryBuilder - the filter query builder
        aggregationBuilders - 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 builder
        timeoutMillis - 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 builder
        timeoutMillis - 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 indices
        types - the types
        Returns:
        the long
      • count

        public long count​(String[] indices,
                          String[] types,
                          org.elasticsearch.index.query.QueryBuilder filterQueryBuilder)
        Count long.
        Parameters:
        indices - the indices
        types - the types
        filterQueryBuilder - the filter query builder
        Returns:
        the long