Interface DocReader

All Known Implementing Classes:
DocValuesDocReader

public interface DocReader
Access the document in a script, provides both old-style, doc['fieldname'], and new style field('fieldname') access to the fields. field(String) and fields(String) may pull field contents from source as well as doc-values. Old style access only reads doc-values.
  • Method Details

    • field

      Field<?> field(String fieldName)
      New-style field access
    • fields

      Stream<Field<?>> fields(String fieldGlob)
      New-style field iterator
    • setDocument

      void setDocument(int docID)
      Set the underlying docId
    • docAsMap

      Map<String,​Object> docAsMap()
      Old-style doc access for contexts that map some doc contents in params
    • doc

      Map<String,​ScriptDocValues<?>> doc()
      Old-style doc['field'] access