Class LazyDocument.LazyField
@lucene.internal
Inheritance
Implements
Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.Misc.dll
Syntax
public class LazyField : IIndexableField
Properties
| Improve this Doc View SourceBoost
Gets the boost factor on this field.
Declaration
public virtual float Boost { get; }
Property Value
Type | Description |
---|---|
System. |
FieldType
Declaration
public virtual FieldType FieldType { get; }
Property Value
Type | Description |
---|---|
Field |
HasBeenLoaded
non-private for test only access @lucene.internal
Declaration
public virtual bool HasBeenLoaded { get; }
Property Value
Type | Description |
---|---|
System. |
IndexableFieldType
Returns the Field
Declaration
public virtual IIndexableFieldType IndexableFieldType { get; }
Property Value
Type | Description |
---|---|
IIndexable |
Name
The field's name
Declaration
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
System. |
NumericType
Gets the Numeric
Expert: The difference between this property and Numeric
In Java, the numeric type was determined by checking the type of
GetGet*Value()
method to retrieve the value.
NOTE: Since Lucene codecs do not support BYTE or INT16, fields created with these types will always be INT32 when read back from the index.
Declaration
public virtual NumericFieldType NumericType { get; }
Property Value
Type | Description |
---|---|
Numeric |
Methods
| Improve this Doc View SourceGetBinaryValue()
Non-null if this field has a binary value.
Declaration
public virtual BytesRef GetBinaryValue()
Returns
Type | Description |
---|---|
Bytes |
GetByteValue()
Returns the field value as System.null
if the type
is non-numeric.
Declaration
public virtual byte? GetByteValue()
Returns
Type | Description |
---|---|
System. |
The field value or |
GetDoubleValue()
Returns the field value as System.null
if the type
is non-numeric.
Declaration
public virtual double? GetDoubleValue()
Returns
Type | Description |
---|---|
System. |
The field value or |
GetInt16Value()
Returns the field value as System.null
if the type
is non-numeric.
Declaration
public virtual short? GetInt16Value()
Returns
Type | Description |
---|---|
System. |
The field value or |
GetInt32Value()
Returns the field value as System.null
if the type
is non-numeric.
Declaration
public virtual int? GetInt32Value()
Returns
Type | Description |
---|---|
System. |
The field value or |
GetInt64Value()
Returns the field value as System.null
if the type
is non-numeric.
Declaration
public virtual long? GetInt64Value()
Returns
Type | Description |
---|---|
System. |
The field value or |
GetNumericValue()
Declaration
[Obsolete("In .NET, use of this method will cause boxing/unboxing. Instead, use the NumericType property to check the underlying type and call the appropriate GetXXXValue() method to retrieve the value.")]
public virtual object GetNumericValue()
Returns
Type | Description |
---|---|
System. |
GetReaderValue()
The value of the field as a System.null
. If null
, the System.
Declaration
public virtual TextReader GetReaderValue()
Returns
Type | Description |
---|---|
System. |
GetSingleValue()
Returns the field value as System.null
if the type
is non-numeric.
Declaration
public virtual float? GetSingleValue()
Returns
Type | Description |
---|---|
System. |
The field value or |
GetStringValue()
The value of the field as a System.null
. If null
, the System.
Declaration
public virtual string GetStringValue()
Returns
Type | Description |
---|---|
System. |
The string representation of the value if it is either a System. |
GetStringValue(IFormatProvider)
The value of the field as a System.null
. If null
, the System.
Declaration
public virtual string GetStringValue(IFormatProvider provider)
Parameters
Type | Name | Description |
---|---|---|
System. |
provider | An object that supplies culture-specific formatting information. This parameter has no effect if this field is non-numeric. |
Returns
Type | Description |
---|---|
System. |
The string representation of the value if it is either a System. |
GetStringValue(String)
The value of the field as a System.null
. If null
, the System.
Declaration
public virtual string GetStringValue(string format)
Parameters
Type | Name | Description |
---|---|---|
System. |
format | A standard or custom numeric format string. This parameter has no effect if this field is non-numeric. |
Returns
Type | Description |
---|---|
System. |
The string representation of the value if it is either a System. |
GetStringValue(String, IFormatProvider)
The value of the field as a System.null
. If null
, the System.
Declaration
public virtual string GetStringValue(string format, IFormatProvider provider)
Parameters
Type | Name | Description |
---|---|---|
System. |
format | A standard or custom numeric format string. This parameter has no effect if this field is non-numeric. |
System. |
provider | An object that supplies culture-specific formatting information. This parameter has no effect if this field is non-numeric. |
Returns
Type | Description |
---|---|
System. |
The string representation of the value if it is either a System. |
GetTokenStream(Analyzer)
Declaration
public virtual TokenStream GetTokenStream(Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
Analyzer | analyzer |
Returns
Type | Description |
---|---|
Token |