Class SingleAssociationFacetField
Add an instance of this to your Document to add a facet label associated with a System.Single. Use TaxonomyFacetSumSingleAssociations to aggregate System.Single values per facet label at search time.
NOTE: This was FloatAssociationFacetField in Lucene
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Facet.Taxonomy
Assembly: Lucene.Net.Facet.dll
Syntax
public class SingleAssociationFacetField : AssociationFacetField, IIndexableField
Constructors
| Improve this Doc View SourceSingleAssociationFacetField(Single, String, String[])
Creates this from dim
and path
and a
System.Single association
Declaration
public SingleAssociationFacetField(float assoc, string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
System.Single | assoc | |
System.String | dim | |
System.String[] | path |
Methods
| Improve this Doc View SourceBytesRefToSingle(BytesRef)
Decodes a previously encoded System.Single.
NOTE: This was bytesRefToFloat() in Lucene
Declaration
public static float BytesRefToSingle(BytesRef b)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | b |
Returns
Type | Description |
---|---|
System.Single |
SingleToBytesRef(Single)
Encodes a System.Single as a 4-byte BytesRef.
NOTE: This was floatToBytesRef() in Lucene
Declaration
public static BytesRef SingleToBytesRef(float v)
Parameters
Type | Name | Description |
---|---|---|
System.Single | v |
Returns
Type | Description |
---|---|
BytesRef |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |