Class ResultDiversificationContext

java.lang.Object
org.elasticsearch.search.diversification.ResultDiversificationContext
Direct Known Subclasses:
MMRResultDiversificationContext

public abstract class ResultDiversificationContext extends Object
  • Constructor Details

    • ResultDiversificationContext

      protected ResultDiversificationContext(String field, int size, @Nullable VectorData queryVector)
  • Method Details

    • getField

      public String getField()
    • getSize

      public int getSize()
    • setFieldVectors

      public void setFieldVectors(Map<Integer,VectorData> fieldVectors)
      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

      public VectorData getQueryVector()
    • getFieldVector

      public VectorData getFieldVector(int rank)
    • getFieldVectorsEntrySet

      public Set<Map.Entry<Integer,VectorData>> getFieldVectorsEntrySet()