Method GetStrings
GetStrings(IndexReader, String)
Checks the internal cache for an appropriate entry, and if none
is found, reads the term values in field
and returns an array
of size reader.MaxDoc
containing the value each document
has in the given field.
Declaration
String[] GetStrings(IndexReader reader, String field)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader | Used to get field values. |
System.String | field | Which field contains the strings. |
Returns
Type | Description |
---|---|
System.String[] | The values in the given field for each document. |