Class FacetField
Add an instance of this to your Document for every facet label.
NOTE: you must call Build(Document) before you add the document to IndexWriter.
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
Assembly: Lucene.Net.Facet.dll
Syntax
public class FacetField : Field, IIndexableField
Constructors
| Improve this Doc View SourceFacetField(String, String[])
Creates the this from dim
and
path
.
Declaration
public FacetField(string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
System.String | dim | |
System.String[] | path |
Properties
| Improve this Doc View SourceDim
Dimension for this field.
Declaration
public string Dim { get; }
Property Value
Type | Description |
---|---|
System.String |
Path
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
| Improve this Doc View SourceVerifyLabel(String)
Verifies the label is not null or empty string.
@lucene.internal
Declaration
public static void VerifyLabel(string label)
Parameters
Type | Name | Description |
---|---|---|
System.String | label |