Class IndexFieldDataService

org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.fielddata.IndexFieldDataService
All Implemented Interfaces:
, , IndexComponent

public class IndexFieldDataService extends AbstractIndexComponent implements
  • Field Details

    • FIELDDATA_CACHE_VALUE_NODE

      public static final  FIELDDATA_CACHE_VALUE_NODE
      See Also:
      Constant Field Values
    • FIELDDATA_CACHE_KEY

      public static final  FIELDDATA_CACHE_KEY
      See Also:
      Constant Field Values
    • INDEX_FIELDDATA_CACHE_KEY

      public static final > INDEX_FIELDDATA_CACHE_KEY
  • Constructor Details

  • Method Details

    • clear

      public void clear()
    • clearField

      public void clearField( fieldName)
    • getForField

      public <IFD extends IndexFieldData<?>> IFD getForField(MappedFieldType fieldType,  fullyQualifiedIndexName, <SearchLookup> searchLookup)
      Returns fielddata for the provided field type, given the provided fully qualified index name, while also making a SearchLookup supplier available that is required for runtime fields.
    • setListener

      public void setListener(IndexFieldDataCache.Listener listener)
      Sets a IndexFieldDataCache.Listener passed to each IndexFieldData creation to capture onCache and onRemoval events. Setting a listener on this method will override any previously set listeners.
      Throws:
      - if the listener is set more than once
    • close

      public void close() throws
      Specified by:
       in interface 
      Specified by:
       in interface 
      Throws: