Class AssociationFacetField
Add an instance of this to your Document to add a facet label associated with an arbitrary byte[]. This will require a custom Facets implementation at search time; see Int32AssociationFacetField and SingleAssociationFacetField to use existing Facets implementations.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
AssociationFacetField
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 AssociationFacetField : Field, IIndexableField
Constructors
| Improve this Doc View SourceAssociationFacetField(BytesRef, String, String[])
Creates this from dim
and path
and an
association
Declaration
public AssociationFacetField(BytesRef assoc, string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | assoc | |
System.String | dim | |
System.String[] | path |
Fields
| Improve this Doc View SourceTYPE
Indexed FieldType.
Declaration
public static readonly FieldType TYPE
Field Value
Type | Description |
---|---|
FieldType |
Properties
| Improve this Doc View SourceAssoc
Associated value.
Declaration
public BytesRef Assoc { get; }
Property Value
Type | Description |
---|---|
BytesRef |
Dim
Dimension for this field.
Declaration
public string Dim { get; }
Property Value
Type | Description |
---|---|
System.String |
Path
Facet path for this field.
Declaration
public string[] Path { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |