- 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 Summary
Modifier and TypeMethodDescriptionMap
<String, ScriptDocValues<?>> doc()
Old-style doc['field'] accessdocAsMap()
Old-style doc access for contexts that map some doc contents in paramsField
<?> New-style field accessNew-style field iteratorvoid
setDocument
(int docID) Set the underlying docIdsource()
Helper for source access
-
Method Details
-
field
New-style field access -
fields
New-style field iterator -
setDocument
void setDocument(int docID) Set the underlying docId -
docAsMap
Old-style doc access for contexts that map some doc contents in params -
doc
Map<String,ScriptDocValues<?>> doc()Old-style doc['field'] access -
source
Helper for source access
-