Module org.elasticsearch.server
Class ResultDiversificationContext
java.lang.Object
org.elasticsearch.search.diversification.ResultDiversificationContext
- Direct Known Subclasses:
MMRResultDiversificationContext
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResultDiversificationContext(String field, int size, VectorData queryVector) -
Method Summary
Modifier and TypeMethodDescriptiongetField()getFieldVector(int rank) intgetSize()voidsetFieldVectors(Map<Integer, VectorData> fieldVectors) Sets the field vectors for this context.
-
Constructor Details
-
ResultDiversificationContext
-
-
Method Details
-
getField
-
getSize
public int getSize() -
setFieldVectors
Sets the field vectors for this context. Note that the key should be the `RankDoc` rank in the total result set- Parameters:
fieldVectors- the vectors to set
-
getQueryVector
-
getFieldVector
-
getFieldVectorsEntrySet
-