Method Doc
Doc(Int32)
Expert: Returns the stored fields of document i
.
Declaration
Document Doc(int i)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i |
Returns
Type | Description |
---|---|
Document |
See Also
Document(System.Int32)
Doc(Int32, FieldSelector)
Get the Documentat the n
th position. The FieldSelector
may be used to determine what Fields to load and how they should be loaded.
NOTE: If the underlying Reader (more specifically, the underlying FieldsReader
) is closed before the lazy Field is
loaded an exception may be thrown. If you want the value of a lazy Field to be available after closing you must
explicitly load it or fetch the Document again with a new loader.
Declaration
Document Doc(int n, FieldSelector fieldSelector)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | n | Get the document at the |
FieldSelector | fieldSelector | The FieldSelector to use to determine what Fields should be loaded on the Document. May be null, in which case all Fields will be loaded. |
Returns
Type | Description |
---|---|
Document | The stored fields of the Document at the nth position |