Class Int32AssociationFacetField
Add an instance of this to your Document to add a facet label associated with an System.Int32. Use TaxonomyFacetSumInt32Associations to aggregate int values per facet label at search time.
NOTE: This was IntAssociationFacetField in Lucene
@lucene.experimental
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 Int32AssociationFacetField : AssociationFacetField, IIndexableField
Constructors
| Improve this Doc View SourceInt32AssociationFacetField(Int32, String, 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 |
---|---|---|
System.Int32 | assoc | |
System.String | dim | |
System.String[] | path |
Methods
| Improve this Doc View SourceBytesRefToInt32(BytesRef)
Decodes a previously encoded System.Int32.
NOTE: This was bytesRefToInt() in Lucene
Declaration
public static int BytesRefToInt32(BytesRef b)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | b |
Returns
Type | Description |
---|---|
System.Int32 |
Int32ToBytesRef(Int32)
Encodes an System.Int32 as a 4-byte BytesRef, big-endian.
NOTE: This was intToBytesRef() in Lucene
Declaration
public static BytesRef Int32ToBytesRef(int v)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | v |
Returns
Type | Description |
---|---|
BytesRef |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |