getFields

Returns an array of IndexableFields with the given name. This method returns an empty array when there are no matching fields. It never returns null.

Return

a Field[] array

Parameters

name

the name of the field


Returns a List of all the fields in a document.

Note that fields which are not stored are not available in documents retrieved from the index, e.g. StoredFields.document.

Return

an immutable List<Field>