public class CollapseContext
extends java.lang.Object
Constructor and Description |
---|
CollapseContext(MappedFieldType fieldType,
InnerHitBuilder innerHit) |
Modifier and Type | Method and Description |
---|---|
CollapsingTopDocsCollector<?> |
createTopDocs(org.apache.lucene.search.Sort sort,
int topN,
boolean trackMaxScore) |
MappedFieldType |
getFieldType()
The field type used for collapsing
|
InnerHitBuilder |
getInnerHit()
The inner hit options to expand the collapsed results
|
public CollapseContext(MappedFieldType fieldType, InnerHitBuilder innerHit)
public MappedFieldType getFieldType()
public InnerHitBuilder getInnerHit()
public CollapsingTopDocsCollector<?> createTopDocs(org.apache.lucene.search.Sort sort, int topN, boolean trackMaxScore) throws java.io.IOException
java.io.IOException