congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
InnerHitBuilder.writeToNestedBWC
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(path);
  out.writeVInt(scoreMode.ordinal());
  out.writeNamedWriteable(query);
  if (out.getVersion().before(Version.V_5_5_0)) {
    final boolean hasInnerHit = innerHitBuilder != null;
    out.writeBoolean(hasInnerHit);
    if (hasInnerHit) {
      innerHitBuilder.writeToNestedBWC(out, query, path);
    }
  } else {
    out.writeOptionalWriteable(innerHitBuilder);
  }
  out.writeBoolean(ignoreUnmapped);
}
origin: apache/servicemix-bundles

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(path);
  out.writeVInt(scoreMode.ordinal());
  out.writeNamedWriteable(query);
  if (out.getVersion().before(Version.V_5_5_0)) {
    final boolean hasInnerHit = innerHitBuilder != null;
    out.writeBoolean(hasInnerHit);
    if (hasInnerHit) {
      innerHitBuilder.writeToNestedBWC(out, query, path);
    }
  } else {
    out.writeOptionalWriteable(innerHitBuilder);
  }
  out.writeBoolean(ignoreUnmapped);
}
origin: com.strapdata.elasticsearch/elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(path);
  out.writeVInt(scoreMode.ordinal());
  out.writeNamedWriteable(query);
  if (out.getVersion().before(Version.V_5_5_0)) {
    final boolean hasInnerHit = innerHitBuilder != null;
    out.writeBoolean(hasInnerHit);
    if (hasInnerHit) {
      innerHitBuilder.writeToNestedBWC(out, query, path);
    }
  } else {
    out.writeOptionalWriteable(innerHitBuilder);
  }
  out.writeBoolean(ignoreUnmapped);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

@Override
protected void doWriteTo(StreamOutput out) throws IOException {
  out.writeString(path);
  out.writeVInt(scoreMode.ordinal());
  out.writeNamedWriteable(query);
  if (out.getVersion().before(Version.V_5_5_0)) {
    final boolean hasInnerHit = innerHitBuilder != null;
    out.writeBoolean(hasInnerHit);
    if (hasInnerHit) {
      innerHitBuilder.writeToNestedBWC(out, query, path);
    }
  } else {
    out.writeOptionalWriteable(innerHitBuilder);
  }
  out.writeBoolean(ignoreUnmapped);
}
org.elasticsearch.index.queryInnerHitBuilderwriteToNestedBWC

Javadoc

BWC serialization for nested InnerHitBuilder. Should only be used to send nested inner hits to nodes pre 5.5.

Popular methods of InnerHitBuilder

  • fromXContent
  • 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
  • getSize,
  • getSorts,
  • getStoredFieldsContext,
  • isExplain,
  • isTrackScores,
  • isVersion,
  • setStoredFieldNames,
  • toXContent,
  • writeToBWC,
  • writeToCollapseBWC

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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