Tabnine Logo
CountRequest.indicesOptions
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: harbby/presto-connectors

@Override
public void handleRequest(final RestRequest request, final RestChannel channel, final Client client) {
  CountRequest countRequest = new CountRequest(Strings.splitStringByCommaToArray(request.param("index")));
  countRequest.indicesOptions(IndicesOptions.fromRequest(request, countRequest.indicesOptions()));
  if (RestActions.hasBodyContent(request)) {
    countRequest.source(RestActions.getRestContent(request));
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.countCountRequestindicesOptions

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
  • routing
    The routing values to control the shards that the search will be executed on.
  • types
    The types of documents the query will run against. Defaults to all types.
  • query
  • source
    The source to execute.
  • terminateAfter
    Upon reaching terminateAfter counts, the count request will early terminate
  • toSearchRequest

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • setScale (BigDecimal)
  • getSharedPreferences (Context)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Join (org.hibernate.mapping)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • From CI to AI: The AI layer in your organization
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