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
System.Object
Lucene.Net.Documents.Field
AssociationFacetField
Implements
Lucene.Net.Index.IIndexableField
System.IFormattable
Inherited Members
Lucene.Net.Documents.Field.m_type
Lucene.Net.Documents.Field.m_name
Lucene.Net.Documents.Field.FieldsData
Lucene.Net.Documents.Field.m_tokenStream
Lucene.Net.Documents.Field.m_boost
Lucene.Net.Documents.Field.GetStringValue()
Lucene.Net.Documents.Field.GetReaderValue()
Lucene.Net.Documents.Field.GetTokenStreamValue()
Lucene.Net.Documents.Field.SetBytesValue(Lucene.Net.Util.BytesRef)
Lucene.Net.Documents.Field.SetTokenStream(Lucene.Net.Analysis.TokenStream)
Lucene.Net.Documents.Field.Name
Lucene.Net.Documents.Field.Boost
Lucene.Net.Documents.Field.GetNumericValue()
Lucene.Net.Documents.Field.NumericType
Lucene.Net.Documents.Field.GetByteValue()
Lucene.Net.Documents.Field.GetInt16Value()
Lucene.Net.Documents.Field.GetInt32Value()
Lucene.Net.Documents.Field.GetInt64Value()
Lucene.Net.Documents.Field.GetSingleValue()
Lucene.Net.Documents.Field.GetDoubleValue()
Lucene.Net.Documents.Field.GetBinaryValue()
Lucene.Net.Documents.Field.FieldType
Lucene.Net.Documents.Field.IndexableFieldType
Lucene.Net.Documents.Field.GetTokenStream(Lucene.Net.Analysis.Analyzer)
Lucene.Net.Documents.Field.TranslateFieldType(Lucene.Net.Documents.Field.Store, Lucene.Net.Documents.Field.Index, Lucene.Net.Documents.Field.TermVector)
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, IFormattable
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 |
|---|---|---|
| Lucene.Net.Util.BytesRef | assoc | |
| System.String | dim | |
| System.String[] | path |
Fields
| Improve this Doc View SourceTYPE
Indexed Lucene.Net.Documents.FieldType.
Declaration
public static readonly FieldType TYPE
Field Value
| Type | Description |
|---|---|
| Lucene.Net.Documents.FieldType |
Properties
| Improve this Doc View SourceAssoc
Associated value.
Declaration
public BytesRef Assoc { get; }
Property Value
| Type | Description |
|---|---|
| Lucene.Net.Util.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 |
Overrides
Lucene.Net.Documents.Field.ToString()
Implements
Lucene.Net.Index.IIndexableField
System.IFormattable