KeywordField

constructor(name: String, value: BytesRef, stored: Field.Store)

Creates a new KeywordField.

Parameters

name

field name

value

the BytesRef value

stored

whether to store the field

Throws

if the field name or value is null.


constructor(name: String, value: String, stored: Field.Store)

Creates a new KeywordField from a String value, by indexing its UTF-8 representation.

Parameters

name

field name

value

the BytesRef value

stored

whether to store the field

Throws

if the field name or value is null.