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
Beispiel #1
0
 /// <summary>
 /// Decodes a previously encoded <see cref="float"/>.
 /// </summary>
 public static float BytesRefToFloat(BytesRef b)
 {
     return(Number.IntBitsToFloat(IntAssociationFacetField.BytesRefToInt(b)));
 }
Beispiel #2
0
 /// <summary>
 /// Encodes a <see cref="float"/> as a 4-byte <see cref="BytesRef"/>.
 /// </summary>
 public static BytesRef FloatToBytesRef(float v)
 {
     return(IntAssociationFacetField.IntToBytesRef(Number.FloatToIntBits(v)));
 }