Class ToParentBlockJoinSortField
A special sort field that allows sorting parent docs based on nested / child level fields. Based on the sort order it either takes the document with the lowest or highest field value into account.
Inheritance
Inherited Members
Namespace: Lucene.Net.Join
Assembly: Lucene.Net.Join.dll
Syntax
public class ToParentBlockJoinSortField : SortField
Constructors
| Improve this Doc View SourceToParentBlockJoinSortField(String, SortFieldType, Boolean, Filter, Filter)
Create To
Declaration
public ToParentBlockJoinSortField(string field, SortFieldType type, bool reverse, Filter parentFilter, Filter childFilter)
Parameters
Type | Name | Description |
---|---|---|
System. |
field | The sort field on the nested / child level. |
Lucene. |
type | The sort type on the nested / child level. |
System. |
reverse | Whether natural order should be reversed on the nested / child level. |
Lucene. |
parentFilter | Lucene. |
Lucene. |
childFilter | Lucene. |
ToParentBlockJoinSortField(String, SortFieldType, Boolean, Boolean, Filter, Filter)
Create To
Declaration
public ToParentBlockJoinSortField(string field, SortFieldType type, bool reverse, bool order, Filter parentFilter, Filter childFilter)
Parameters
Type | Name | Description |
---|---|---|
System. |
field | The sort field on the nested / child level. |
Lucene. |
type | The sort type on the nested / child level. |
System. |
reverse | Whether natural order should be reversed on the nested / child document level. |
System. |
order | Whether natural order should be reversed on the parent level. |
Lucene. |
parentFilter | Lucene. |
Lucene. |
childFilter | Lucene. |
Methods
| Improve this Doc View SourceGetComparer(Int32, Int32)
Declaration
public override FieldComparer GetComparer(int numHits, int sortPos)
Parameters
Type | Name | Description |
---|---|---|
System. |
numHits | |
System. |
sortPos |
Returns
Type | Description |
---|---|
Lucene. |