congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CountRequest.routing
Code IndexAdd Tabnine to your IDE (free)

How to use
routing
method
in
org.elasticsearch.action.count.CountRequest

Best Java code snippets using org.elasticsearch.action.count.CountRequest.routing (Showing top 5 results out of 315)

origin: harbby/presto-connectors

/**
 * A comma separated list of routing values to control the shards the search will be executed on.
 */
public CountRequestBuilder setRouting(String routing) {
  request.routing(routing);
  return this;
}
origin: harbby/presto-connectors

/**
 * The routing values to control the shards that the search will be executed on.
 */
public CountRequestBuilder setRouting(String... routing) {
  request.routing(routing);
  return this;
}
origin: javanna/elasticshell

public CountRequestBuilder<JsonInput, JsonOutput> routing(String... routing) {
  request.routing(routing);
  return this;
}
origin: harbby/presto-connectors

countRequest.routing(request.param("routing"));
countRequest.minScore(request.paramAsFloat("min_score", DEFAULT_MIN_SCORE));
countRequest.types(Strings.splitStringByCommaToArray(request.param("type")));
origin: harbby/presto-connectors

  public SearchRequest toSearchRequest() {
    SearchRequest searchRequest = new SearchRequest(indices());
    searchRequest.indicesOptions(indicesOptions());
    searchRequest.types(types());
    searchRequest.routing(routing());
    searchRequest.preference(preference());
    searchRequest.source(source());
    SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
    searchSourceBuilder.size(0);
    if (minScore() != DEFAULT_MIN_SCORE) {
      searchSourceBuilder.minScore(minScore());
    }
    if (terminateAfter() != DEFAULT_TERMINATE_AFTER) {
      searchSourceBuilder.terminateAfter(terminateAfter());
    }
    searchRequest.extraSource(searchSourceBuilder);
    return searchRequest;
  }
}
org.elasticsearch.action.countCountRequestrouting

Javadoc

A comma separated list of routing values to control the shards the search will be executed on.

Popular methods of CountRequest

  • <init>
    Constructs a new count request against the provided indices. No indices provided means it will run a
  • indices
  • minScore
    The minimum score of the documents to include in the count. Defaults to -1 which means all documents
  • preference
  • types
    The types of documents the query will run against. Defaults to all types.
  • indicesOptions
  • query
  • source
    The source to execute.
  • terminateAfter
    Upon reaching terminateAfter counts, the count request will early terminate
  • toSearchRequest

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Path (java.nio.file)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now