Tabnine Logo
InnerHitBuilder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.elasticsearch.index.query.InnerHitBuilder
constructor

Best Java code snippets using org.elasticsearch.index.query.InnerHitBuilder.<init> (Showing top 7 results out of 315)

origin: org.elasticsearch/elasticsearch

public static InnerHitBuilder fromXContent(XContentParser parser) throws IOException {
  return PARSER.parse(parser, new InnerHitBuilder(), null);
}
origin: apache/metron

 @Override
 public SearchResponse getAllMetaAlertsForAlert(String guid) throws InvalidSearchException, IOException {
  if (guid == null || guid.trim().isEmpty()) {
   throw new InvalidSearchException("Guid cannot be empty");
  }
  // Searches for all alerts containing the meta alert guid in it's "metalerts" array
  QueryBuilder qb = boolQuery()
    .must(
      nestedQuery(
        MetaAlertConstants.ALERT_FIELD,
        boolQuery()
          .must(termQuery(MetaAlertConstants.ALERT_FIELD + "." + GUID, guid)),
        ScoreMode.None
      ).innerHit(new InnerHitBuilder())
    )
    .must(termQuery(MetaAlertConstants.STATUS_FIELD, MetaAlertStatus.ACTIVE.getStatusString()));
  return queryAllResults(elasticsearchDao.getClient().getHighLevelClient(), qb, config.getMetaAlertIndex(),
    pageSize);
 }
}
origin: apache/metron

/**
 * Given an alert GUID, retrieve all associated meta alerts.
 * @param alertGuid The GUID of the child alert
 * @return The Elasticsearch response containing the meta alerts
 */
protected SearchResponse getMetaAlertsForAlert(String alertGuid) throws IOException {
 QueryBuilder qb = boolQuery()
   .must(
     nestedQuery(
       MetaAlertConstants.ALERT_FIELD,
       boolQuery()
         .must(termQuery(MetaAlertConstants.ALERT_FIELD + "." + Constants.GUID,
           alertGuid)),
       ScoreMode.None
     ).innerHit(new InnerHitBuilder())
   )
   .must(termQuery(MetaAlertConstants.STATUS_FIELD, MetaAlertStatus.ACTIVE.getStatusString()));
 return ElasticsearchUtils
   .queryAllResults(elasticsearchDao.getClient().getHighLevelClient(), qb, getConfig().getMetaAlertIndex(),
     pageSize);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

public static InnerHitBuilder fromXContent(XContentParser parser) throws IOException {
  return PARSER.parse(parser, new InnerHitBuilder(), null);
}
origin: apache/servicemix-bundles

public static InnerHitBuilder fromXContent(XContentParser parser) throws IOException {
  return PARSER.parse(parser, new InnerHitBuilder(), null);
}
origin: com.strapdata.elasticsearch/elasticsearch

  public static InnerHitBuilder fromXContent(QueryParseContext context) throws IOException {
    return PARSER.parse(context.parser(), new InnerHitBuilder(), context);
  }
}
origin: DigitalPebble/storm-crawler

InnerHitBuilder ihb = new InnerHitBuilder();
ihb.setSize(maxURLsPerBucket);
ihb.setName("urls_per_bucket");
org.elasticsearch.index.queryInnerHitBuilder<init>

Javadoc

Read from a stream.

Popular methods of InnerHitBuilder

  • fromXContent
  • getName
  • isIgnoreUnmapped
    Whether to include inner hits in the search response hits if required mappings is missing
  • setIgnoreUnmapped
  • getDocValueFields
    Gets the docvalue fields.
  • getFetchSourceContext
  • getFrom
  • getHighlightBuilder
  • getScriptFields
  • getSize
  • getSorts
  • getStoredFieldsContext
    Gets the stored fields context.
  • getSorts,
  • getStoredFieldsContext,
  • isExplain,
  • isTrackScores,
  • isVersion,
  • setStoredFieldNames,
  • toXContent,
  • writeToBWC,
  • writeToCollapseBWC

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for Android Studio
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