Class SingleAssociationFacetField
Add an instance of this to your Lucene.Net.Documents.Document to add a facet label associated with a float. Use TaxonomyFacetSumSingleAssociations to aggregate float values per facet label at search time.
NOTE: This was FloatAssociationFacetField in LuceneNote
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Field.m_type
Field.m_name
Field.FieldsData
Field.m_tokenStream
Field.m_boost
Field.GetStringValue()
Field.GetReaderValue()
Field.GetTokenStreamValue()
Field.SetBytesValue(BytesRef)
Field.SetTokenStream(TokenStream)
Field.Name
Field.Boost
Field.GetNumericValue()
Field.NumericType
Field.GetByteValue()
Field.GetInt16Value()
Field.GetInt32Value()
Field.GetInt64Value()
Field.GetSingleValue()
Field.GetDoubleValue()
Field.GetBinaryValue()
Field.FieldType
Field.IndexableFieldType
Field.GetTokenStream(Analyzer)
Field.TranslateFieldType(Field.Store, Field.Index, Field.TermVector)
Namespace: Lucene.Net.Facet.Taxonomy
Assembly: Lucene.Net.Facet.dll
Syntax
public class SingleAssociationFacetField : AssociationFacetField, IIndexableField, IFormattable
Constructors
SingleAssociationFacetField(float, string, params string[])
Creates this from dim
and path
and a
float association
Declaration
public SingleAssociationFacetField(float assoc, string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
float | assoc | |
string | dim | |
string[] | path |
Methods
BytesRefToSingle(BytesRef)
Decodes a previously encoded float.
NOTE: This was bytesRefToFloat() in LuceneDeclaration
public static float BytesRefToSingle(BytesRef b)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | b |
Returns
Type | Description |
---|---|
float |
SingleToBytesRef(float)
Encodes a float as a 4-byte Lucene.Net.Util.BytesRef.
NOTE: This was floatToBytesRef() in LuceneDeclaration
public static BytesRef SingleToBytesRef(float v)
Parameters
Type | Name | Description |
---|---|---|
float | v |
Returns
Type | Description |
---|---|
BytesRef |
ToString()
Prints a Lucene.Net.Documents.Field for human consumption.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Implements
Lucene.Net.Index.IIndexableField