Skip to content

Commit

Permalink
Merge pull request #121 from kinnou02/multi-index
Browse files Browse the repository at this point in the history
add multiple indices parameters to search operations
  • Loading branch information
benashford authored Sep 27, 2018
2 parents b2face9 + f971545 commit 7a907e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/operations/search/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ impl<'a, 'b> SearchURIOperation<'a, 'b> {
add_option!(with_from, "from");
add_option!(with_size, "size");
add_option!(with_search_type, "search_type");
add_option!(with_ignore_unavailable, "ignore_unavailable");
add_option!(with_allow_no_indices, "allow_no_indices");
add_option!(with_expand_wildcards, "expand_wildcards");

pub fn with_fields(&'b mut self, fields: &[&str]) -> &'b mut Self {
self.options.push("fields", fields.iter().join(","));
Expand Down Expand Up @@ -710,6 +713,9 @@ impl<'a, 'b> SearchQueryOperation<'a, 'b> {
add_option!(with_routing, "routing");
add_option!(with_search_type, "search_type");
add_option!(with_query_cache, "query_cache");
add_option!(with_ignore_unavailable, "ignore_unavailable");
add_option!(with_allow_no_indices, "allow_no_indices");
add_option!(with_expand_wildcards, "expand_wildcards");

/// Performs the search with the specified query and options
pub fn send<T>(&'b mut self) -> Result<SearchResult<T>, EsError>
Expand Down

0 comments on commit 7a907e1

Please sign in to comment.