Class DocumentExtensions
LUCENENET specific extensions to the Lucene.
Inheritance
Inherited Members
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.Facet.dll
Syntax
public static class DocumentExtensions
Methods
| Improve this Doc View SourceAddAssociationFacetField(Document, BytesRef, String, String[])
Adds a new Associationdim
and path
and an
association.
Declaration
public static AssociationFacetField AddAssociationFacetField(this Document document, BytesRef assoc, string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
document | This Lucene. |
Lucene. |
assoc | Associated value. |
System. |
dim | Dimension for this field. |
System. |
path | Facet path for this field. |
Returns
Type | Description |
---|---|
Association |
The field that was added to this Lucene. |
AddFacetField(Document, String, String[])
Adds a new Facetdim
and
path
.
Declaration
public static FacetField AddFacetField(this Document document, string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
document | This Lucene. |
System. |
dim | Dimension for this field. |
System. |
path | Facet path for this field. |
Returns
Type | Description |
---|---|
Facet |
The field that was added to this Lucene. |
AddInt32AssociationFacetField(Document, Int32, String, String[])
Adds a new Int32Associationdim
and path
and an
System.
Declaration
public static Int32AssociationFacetField AddInt32AssociationFacetField(this Document document, int assoc, string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
document | This Lucene. |
System. |
assoc | Associated value. |
System. |
dim | Dimension for this field. |
System. |
path | Facet path for this field. |
Returns
Type | Description |
---|---|
Int32Association |
The field that was added to this Lucene. |
AddSingleAssociationFacetField(Document, Single, String, String[])
Adds a new Singledim
and path
and a
System.
Declaration
public static SingleAssociationFacetField AddSingleAssociationFacetField(this Document document, float assoc, string dim, params string[] path)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
document | This Lucene. |
System. |
assoc | Associated value. |
System. |
dim | Dimension for this field. |
System. |
path | Facet path for this field. |
Returns
Type | Description |
---|---|
Single |
The field that was added to this Lucene. |
AddSortedSetDocValuesFacetField(Document, String, String)
Adds a new Sorted
Declaration
public static SortedSetDocValuesFacetField AddSortedSetDocValuesFacetField(this Document document, string dim, string label)
Parameters
Type | Name | Description |
---|---|---|
Lucene. |
document | This Lucene. |
System. |
dim | Dimension for this field. |
System. |
label | Label for this field. |
Returns
Type | Description |
---|---|
Sorted |
The field that was added to this Lucene. |
Remarks
Add a Sorted