Class IndexableFieldExtensions
Extension methods to the IIndexable
Inheritance
Namespace: Lucene.Net.Documents.Extensions
Assembly: Lucene.Net.dll
Syntax
public static class IndexableFieldExtensions : object
Methods
| Improve this Doc View SourceGetByteValueOrDefault(IIndexableField)
Returns the field value as 0
if the type
is non-numeric.
Declaration
public static byte GetByteValueOrDefault(this IIndexableField field)
Parameters
Type | Name | Description |
---|---|---|
IIndexable |
field | This IIndexable |
Returns
Type | Description |
---|---|
System. |
The field value or |
GetDoubleValueOrDefault(IIndexableField)
Returns the field value as 0
if the type
is non-numeric.
Declaration
public static double GetDoubleValueOrDefault(this IIndexableField field)
Parameters
Type | Name | Description |
---|---|---|
IIndexable |
field | This IIndexable |
Returns
Type | Description |
---|---|
System. |
The field value or |
GetInt16ValueOrDefault(IIndexableField)
Returns the field value as 0
if the type
is non-numeric.
Declaration
public static short GetInt16ValueOrDefault(this IIndexableField field)
Parameters
Type | Name | Description |
---|---|---|
IIndexable |
field | This IIndexable |
Returns
Type | Description |
---|---|
System. |
The field value or |
GetInt32ValueOrDefault(IIndexableField)
Returns the field value as 0
if the type
is non-numeric.
Declaration
public static int GetInt32ValueOrDefault(this IIndexableField field)
Parameters
Type | Name | Description |
---|---|---|
IIndexable |
field | This IIndexable |
Returns
Type | Description |
---|---|
System. |
The field value or |
GetInt64ValueOrDefault(IIndexableField)
Returns the field value as 0
if the type
is non-numeric.
Declaration
public static long GetInt64ValueOrDefault(this IIndexableField field)
Parameters
Type | Name | Description |
---|---|---|
IIndexable |
field | This IIndexable |
Returns
Type | Description |
---|---|
System. |
The field value or |
GetSingleValueOrDefault(IIndexableField)
Returns the field value as 0
if the type
is non-numeric.
Declaration
public static float GetSingleValueOrDefault(this IIndexableField field)
Parameters
Type | Name | Description |
---|---|---|
IIndexable |
field | This IIndexable |
Returns
Type | Description |
---|---|
System. |
The field value or |