Java Code Examples for org.elasticsearch.common.Strings#arrayToCommaDelimitedString()

The following examples show how to use org.elasticsearch.common.Strings#arrayToCommaDelimitedString() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ExistsRequest.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
/**
 * The routing values to control the shards that the search will be executed on.
 */
public ExistsRequest routing(String... routings) {
    this.routing = Strings.arrayToCommaDelimitedString(routings);
    return this;
}
 
Example 2
Source File: CountRequest.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
/**
 * The routing values to control the shards that the search will be executed on.
 */
public CountRequest routing(String... routings) {
    this.routing = Strings.arrayToCommaDelimitedString(routings);
    return this;
}
 
Example 3
Source File: ClusterSearchShardsRequest.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
/**
 * The routing values to control the shards that the search will be executed on.
 */
public ClusterSearchShardsRequest routing(String... routings) {
    this.routing = Strings.arrayToCommaDelimitedString(routings);
    return this;
}
 
Example 4
Source File: SearchRequest.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
/**
 * The routing values to control the shards that the search will be executed on.
 */
public SearchRequest routing(String... routings) {
    this.routing = Strings.arrayToCommaDelimitedString(routings);
    return this;
}
 
Example 5
Source File: SuggestRequest.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
/**
 * The routing values to control the shards that the search will be executed on.
 */
public SuggestRequest routing(String... routings) {
    this.routing = Strings.arrayToCommaDelimitedString(routings);
    return this;
}
 
Example 6
Source File: TermsByQueryRequest.java    From siren-join with GNU Affero General Public License v3.0 4 votes vote down vote up
/**
 * The routing values to control the shards that the request will be executed on.
 */
public TermsByQueryRequest routing(String... routings) {
  this.routing = Strings.arrayToCommaDelimitedString(routings);
  return this;
}
 
Example 7
Source File: SearchIntoRequest.java    From elasticsearch-inout-plugin with Apache License 2.0 4 votes vote down vote up
/**
 * The routing values to control the shards that the search will be
 * executed on.
 */
public SearchIntoRequest routing(String... routings) {
    this.routing = Strings.arrayToCommaDelimitedString(routings);
    return this;
}
 
Example 8
Source File: ExportRequest.java    From elasticsearch-inout-plugin with Apache License 2.0 4 votes vote down vote up
/**
 * The routing values to control the shards that the search will be executed on.
 */
public ExportRequest routing(String... routings) {
    this.routing = Strings.arrayToCommaDelimitedString(routings);
    return this;
}