mirror of
https://github.com/apache/lucene.git
synced 2025-02-10 20:15:18 +00:00
remove NONE aggregate value
This commit is contained in:
parent
2554e05ef4
commit
be3f2e9d6f
@ -31,29 +31,9 @@ public class MultiVectorSimilarityFunction {
|
|||||||
|
|
||||||
/** Aggregation function to combine similarity across multiple vector values */
|
/** Aggregation function to combine similarity across multiple vector values */
|
||||||
public enum Aggregation {
|
public enum Aggregation {
|
||||||
/** Selecting this aggregation indicates that the field does not have multi-vector values */
|
|
||||||
NONE {
|
|
||||||
@Override
|
|
||||||
public float aggregate(
|
|
||||||
float[] outer,
|
|
||||||
float[] inner,
|
|
||||||
VectorSimilarityFunction vectorSimilarityFunction,
|
|
||||||
int dimension) {
|
|
||||||
throw new UnsupportedOperationException();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public float aggregate(
|
|
||||||
byte[] outer,
|
|
||||||
byte[] inner,
|
|
||||||
VectorSimilarityFunction vectorSimilarityFunction,
|
|
||||||
int dimension) {
|
|
||||||
throw new UnsupportedOperationException();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SumMaxSimilarity between two multi-vectors. Computes the sum of maximum similarity
|
* Sum_Max Similarity between two multi-vectors. Computes the sum of maximum similarity
|
||||||
* found for each vector in the first multi-vector against all vectors in the second
|
* found for each vector in the first multi-vector against all vectors in the second
|
||||||
* multi-vector.
|
* multi-vector.
|
||||||
*/
|
*/
|
||||||
@ -123,8 +103,8 @@ public class MultiVectorSimilarityFunction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes and aggregates similarity over multiple vector values.
|
* Computes and aggregates similarity over multiple vector values.
|
||||||
*
|
* <p>
|
||||||
* Assumes that all vector values in both provided multi-vectors have the same dimensions. Slices
|
* Assumes all vector values in both provided multi-vectors have the same dimension. Slices
|
||||||
* inner and outer float[] multi-vectors into dimension sized vector values for comparison.
|
* inner and outer float[] multi-vectors into dimension sized vector values for comparison.
|
||||||
*
|
*
|
||||||
* @param outer first multi-vector
|
* @param outer first multi-vector
|
||||||
@ -141,8 +121,8 @@ public class MultiVectorSimilarityFunction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes and aggregates similarity over multiple vector values.
|
* Computes and aggregates similarity over multiple vector values.
|
||||||
*
|
* <p>
|
||||||
* Assumes that all vector values in both provided multi-vectors have the same dimensions. Slices
|
* Assumes all vector values in both provided multi-vectors have the same dimension. Slices
|
||||||
* inner and outer byte[] multi-vectors into dimension sized vector values for comparison.
|
* inner and outer byte[] multi-vectors into dimension sized vector values for comparison.
|
||||||
*
|
*
|
||||||
* @param outer first multi-vector
|
* @param outer first multi-vector
|
||||||
|
Loading…
x
Reference in New Issue
Block a user