Class BlockJoinComparerSource
Helper class to sort readers that contain blocks of documents.
Note that this class is intended to used with Sorting
- Cannot yet be used with
IndexSearcher.SearchAfter - Filling sort field values is not yet supported.
Namespace: Lucene.Net.Index.Sorter
Assembly: Lucene.Net.Misc.dll
Syntax
public class BlockJoinComparerSource : FieldComparerSource
Constructors
| Improve this Doc View SourceBlockJoinComparerSource(Filter, Sort)
Create a new BlockJoinComparerSource, sorting only blocks of documents
with parentSort
and not reordering children with a block.
Declaration
public BlockJoinComparerSource(Filter parentsFilter, Sort parentSort)
Parameters
Type | Name | Description |
---|---|---|
Filter | parentsFilter | Filter identifying parent documents |
Sort | parentSort | Sort for parent documents |
BlockJoinComparerSource(Filter, Sort, Sort)
Create a new BlockJoinComparerSource, specifying the sort order for both blocks of documents and children within a block.
Declaration
public BlockJoinComparerSource(Filter parentsFilter, Sort parentSort, Sort childSort)
Parameters
Type | Name | Description |
---|---|---|
Filter | parentsFilter | Filter identifying parent documents |
Sort | parentSort | Sort for parent documents |
Sort | childSort | Sort for child documents in the same block |
Methods
| Improve this Doc View SourceNewComparer(String, Int32, Int32, Boolean)
Declaration
public override FieldComparer NewComparer(string fieldname, int numHits, int sortPos, bool reversed)
Parameters
Type | Name | Description |
---|---|---|
System. |
fieldname | |
System. |
numHits | |
System. |
sortPos | |
System. |
reversed |
Returns
Type | Description |
---|---|
Field |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |