Class FetchDocValuesContext

java.lang.Object
org.elasticsearch.search.fetch.subphase.FetchDocValuesContext

public class FetchDocValuesContext
extends java.lang.Object
All the required context to pull a field from the doc values. This contains:
  • a list of field names and its format.
  • Constructor Summary

    Constructors
    Constructor Description
    FetchDocValuesContext​(SearchExecutionContext searchExecutionContext, java.util.List<FieldAndFormat> fieldPatterns)
    Create a new FetchDocValuesContext using the provided input list.
  • Method Summary

    Modifier and Type Method Description
    java.util.List<FieldAndFormat> fields()
    Returns the required docvalue fields.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FetchDocValuesContext

      public FetchDocValuesContext​(SearchExecutionContext searchExecutionContext, java.util.List<FieldAndFormat> fieldPatterns)
      Create a new FetchDocValuesContext using the provided input list. Field patterns containing wildcards are resolved and unmapped fields are filtered out.
  • Method Details

    • fields

      public java.util.List<FieldAndFormat> fields()
      Returns the required docvalue fields.