FieldInfos

open class FieldInfos(infos: Array<FieldInfo>) : Iterable<FieldInfo>

Collection of FieldInfos (accessible by number or by name).

Constructors

Link copied to clipboard
constructor(infos: Array<FieldInfo>)

Types

Link copied to clipboard
class Builder(globalFieldNumbers: FieldInfos.FieldNumbers)
Link copied to clipboard
object Companion
Link copied to clipboard
class FieldNumbers(softDeletesFieldName: String?, parentFieldName: String?)

Properties

Link copied to clipboard

Returns the parent document field name if exists; otherwise returns null

Link copied to clipboard

Returns the soft-deletes field name if exists; otherwise returns null

Functions

Link copied to clipboard
open fun fieldInfo(fieldNumber: Int): FieldInfo?

Return the fieldinfo object referenced by the fieldNumber.

open fun fieldInfo(fieldName: String?): FieldInfo?

Return the fieldinfo object referenced by the field name

Link copied to clipboard
open fun hasDocValues(): Boolean

Returns true if any fields have DocValues

Link copied to clipboard
open fun hasFreq(): Boolean

Returns true if any fields have freqs

Link copied to clipboard
open fun hasNorms(): Boolean

Returns true if any fields have norms

Link copied to clipboard
open fun hasOffsets(): Boolean

Returns true if any fields have offsets

Link copied to clipboard
open fun hasPayloads(): Boolean

Returns true if any fields have payloads

Link copied to clipboard

Returns true if any fields have PointValues

Link copied to clipboard
open fun hasPostings(): Boolean

Returns true if any fields have postings

Link copied to clipboard
open fun hasProx(): Boolean

Returns true if any fields have positions

Link copied to clipboard

Returns true if any fields have term vectors

Link copied to clipboard

Returns true if any fields have vector values

Link copied to clipboard
open operator override fun iterator(): MutableIterator<FieldInfo>

Returns an iterator over all the fieldinfo objects present, ordered by ascending field number

Link copied to clipboard
open fun size(): Int

Returns the number of fields