Class AssociationFacetField
Add an instance of this to your Lucene.Net.Documents.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.
Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
Field
AssociationFacetField
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 AssociationFacetField : Field, IIndexableField, IFormattable
Constructors
AssociationFacetField(BytesRef, string, params 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 | |
string | dim | |
string[] | path |
Fields
TYPE
Indexed Lucene.Net.Documents.FieldType.
Declaration
public static readonly FieldType TYPE
Field Value
Type | Description |
---|---|
FieldType |
Properties
Assoc
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 |
---|---|
string |
Path
Facet path for this field.
Declaration
public string[] Path { get; }
Property Value
Type | Description |
---|---|
string[] |
Methods
ToString()
Prints a Lucene.Net.Documents.Field for human consumption.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Lucene.Net.Documents.Field.ToString()
Implements
Lucene.Net.Index.IIndexableField