Class Int32AssociationFacetField
Add an instance of this to your Lucene.Net.Documents.Document to add a facet label associated with an int. Use TaxonomyFacetSumInt32Associations to aggregate int values per facet label at search time.
NOTE: This was IntAssociationFacetField 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 Int32AssociationFacetField : AssociationFacetField, IIndexableField, IFormattable
Constructors
Int32AssociationFacetField(int, string, params string[])
Creates this from dim
and path
and an
int association
Declaration
public Int32AssociationFacetField(int assoc, string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
int | assoc | |
string | dim | |
string[] | path |
Methods
BytesRefToInt32(BytesRef)
Decodes a previously encoded int.
NOTE: This was bytesRefToInt() in LuceneDeclaration
public static int BytesRefToInt32(BytesRef b)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | b |
Returns
Type | Description |
---|---|
int |
Int32ToBytesRef(int)
Encodes an int as a 4-byte Lucene.Net.Util.BytesRef, big-endian.
NOTE: This was intToBytesRef() in LuceneDeclaration
public static BytesRef Int32ToBytesRef(int v)
Parameters
Type | Name | Description |
---|---|---|
int | 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