Codota Logo
InnerHitBuilder.<init>
Code IndexAdd Codota 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)

  • Common ways to obtain InnerHitBuilder
private void myMethod () {
InnerHitBuilder i =
  • Codota IconXContentParser parser;InnerHitBuilder.fromXContent(parser)
  • Codota IconStreamInput streamInput;streamInput.readOptionalWriteable(InnerHitBuilder::new)
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now