Tabnine Logo
InnerHitBuilder.fromXContent
Code IndexAdd Tabnine to your IDE (free)

How to use
fromXContent
method
in
org.elasticsearch.index.query.InnerHitBuilder

Best Java code snippets using org.elasticsearch.index.query.InnerHitBuilder.fromXContent (Showing top 11 results out of 315)

origin: NLPchina/elasticsearch-sql

if (condition.getInnerHits() != null) {
  try (JsonXContentParser parser = new JsonXContentParser(NamedXContentRegistry.EMPTY, LoggingDeprecationHandler.INSTANCE, new JsonFactory().createParser(condition.getInnerHits()))) {
    ihb = InnerHitBuilder.fromXContent(parser);
  } catch (IOException e) {
    throw new IllegalArgumentException("couldn't parse inner_hits: " + e.getMessage(), e);
origin: org.elasticsearch/elasticsearch

  query = parseInnerQueryBuilder(parser);
} else if (INNER_HITS_FIELD.match(currentFieldName, parser.getDeprecationHandler())) {
  innerHitBuilder = InnerHitBuilder.fromXContent(parser);
} else {
  throw new ParsingException(parser.getTokenLocation(), "[nested] query does not support [" + currentFieldName + "]");
origin: com.strapdata.elasticsearch/elasticsearch

  query = parseContext.parseInnerQueryBuilder();
} else if (INNER_HITS_FIELD.match(currentFieldName)) {
  innerHitBuilder = InnerHitBuilder.fromXContent(parseContext);
} else {
  throw new ParsingException(parser.getTokenLocation(), "[nested] query does not support [" + currentFieldName + "]");
origin: com.strapdata.elasticsearch.plugin/parent-join

  iqb = parseInnerQueryBuilder(parser);
} else if (INNER_HITS_FIELD.match(currentFieldName)) {
  innerHits = InnerHitBuilder.fromXContent(parser);
} else {
  throw new ParsingException(parser.getTokenLocation(),
origin: org.codelibs.elasticsearch.module/parent-join

  iqb = parseInnerQueryBuilder(parser);
} else if (INNER_HITS_FIELD.match(currentFieldName, parser.getDeprecationHandler())) {
  innerHits = InnerHitBuilder.fromXContent(parser);
} else {
  throw new ParsingException(parser.getTokenLocation(),
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

  query = parseInnerQueryBuilder(parser);
} else if (INNER_HITS_FIELD.match(currentFieldName, parser.getDeprecationHandler())) {
  innerHitBuilder = InnerHitBuilder.fromXContent(parser);
} else {
  throw new ParsingException(parser.getTokenLocation(), "[nested] query does not support [" + currentFieldName + "]");
origin: apache/servicemix-bundles

  query = parseInnerQueryBuilder(parser);
} else if (INNER_HITS_FIELD.match(currentFieldName, parser.getDeprecationHandler())) {
  innerHitBuilder = InnerHitBuilder.fromXContent(parser);
} else {
  throw new ParsingException(parser.getTokenLocation(), "[nested] query does not support [" + currentFieldName + "]");
origin: org.elasticsearch.plugin/parent-join-client

  iqb = parseInnerQueryBuilder(parser);
} else if (INNER_HITS_FIELD.match(currentFieldName, parser.getDeprecationHandler())) {
  innerHits = InnerHitBuilder.fromXContent(parser);
} else {
  throw new ParsingException(parser.getTokenLocation(),
origin: com.strapdata.elasticsearch.plugin/parent-join

  iqb = parseInnerQueryBuilder(parser);
} else if (INNER_HITS_FIELD.match(currentFieldName)) {
  innerHitBuilder = InnerHitBuilder.fromXContent(parser);
} else {
  throw new ParsingException(parser.getTokenLocation(), "[has_child] query does not support [" + currentFieldName + "]");
origin: org.codelibs.elasticsearch.module/parent-join

  iqb = parseInnerQueryBuilder(parser);
} else if (INNER_HITS_FIELD.match(currentFieldName, parser.getDeprecationHandler())) {
  innerHitBuilder = InnerHitBuilder.fromXContent(parser);
} else {
  throw new ParsingException(parser.getTokenLocation(), "[has_child] query does not support [" + currentFieldName + "]");
origin: org.elasticsearch.plugin/parent-join-client

  iqb = parseInnerQueryBuilder(parser);
} else if (INNER_HITS_FIELD.match(currentFieldName, parser.getDeprecationHandler())) {
  innerHitBuilder = InnerHitBuilder.fromXContent(parser);
} else {
  throw new ParsingException(parser.getTokenLocation(), "[has_child] query does not support [" + currentFieldName + "]");
org.elasticsearch.index.queryInnerHitBuilderfromXContent

Popular methods of InnerHitBuilder

  • getName
  • isIgnoreUnmapped
    Whether to include inner hits in the search response hits if required mappings is missing
  • <init>
    Read from a stream.
  • 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
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Best plugins for Eclipse
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