Apache Lucene.Net 2.4.0 Class Library API

Field.BinaryValue Method 

NOTE: This method is now obsolete.

This method must allocate a new byte[] if the AbstractField.GetBinaryOffset() is non-zero or AbstractField.GetBinaryLength() is not the full length of the byte[]. Please use AbstractField.GetBinaryValue() instead, which simply returns the byte[].


The value of the field in Binary, or null. If null, the Reader value, String value, or TokenStream value is used. Exactly one of stringValue(), readerValue(), GetBinaryValue(), and tokenStreamValue() must be set.

public override byte[] BinaryValue();

Implements

Fieldable.BinaryValue

See Also

Field Class | Lucene.Net.Documents Namespace