Class SingleAssociationFacetField
Add an instance of this to your
NOTE: This was FloatAssociationFacetField in Lucene
@lucene.experimental
Inherited Members
Namespace: Lucene.Net.Facet.Taxonomy
Assembly: Lucene.Net.Facet.dll
Syntax
public class SingleAssociationFacetField : AssociationFacetField
Constructors
| Improve this Doc View SourceSingleAssociationFacetField(Single, String, String[])
Creates this from dim
and path
and a
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(Util.BytesRef)
Decodes a previously encoded
NOTE: This was bytesRefToFloat() in Lucene
Declaration
public static float BytesRefToSingle(Util.BytesRef b)
Parameters
Type | Name | Description |
---|---|---|
Util.BytesRef | b |
Returns
Type | Description |
---|---|
System.Single |
SingleToBytesRef(Single)
Encodes a
NOTE: This was floatToBytesRef() in Lucene
Declaration
public static Util.BytesRef SingleToBytesRef(float v)
Parameters
Type | Name | Description |
---|---|---|
System.Single | v |
Returns
Type | Description |
---|---|
Util.BytesRef |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |