C# Class Lucene.Net.Facet.Taxonomy.IntAssociationFacetField

Add an instance of this to your Document to add a facet label associated with an int. Use TaxonomyFacetSumIntAssociations to aggregate int values per facet label at search time. @lucene.experimental
Inheritance: Lucene.Net.Facet.Taxonomy.AssociationFacetField
Show file Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
BytesRefToInt ( BytesRef b ) : int

Decodes a previously encoded int.

IntAssociationFacetField ( int assoc, string dim ) : Lucene.Net.Support

Creates this from dim and path and an int association

IntToBytesRef ( int v ) : BytesRef

Encodes an int as a 4-byte BytesRef, big-endian.

ToString ( ) : string

Method Details

BytesRefToInt() public static method

Decodes a previously encoded int.
public static BytesRefToInt ( BytesRef b ) : int
b BytesRef
return int

IntAssociationFacetField() public method

Creates this from dim and path and an int association
public IntAssociationFacetField ( int assoc, string dim ) : Lucene.Net.Support
assoc int
dim string
return Lucene.Net.Support

IntToBytesRef() public static method

Encodes an int as a 4-byte BytesRef, big-endian.
public static IntToBytesRef ( int v ) : BytesRef
v int
return BytesRef

ToString() public method

public ToString ( ) : string
return string