mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-21 16:27:51 -06:00
bug fix for similarity function
This commit is contained in:
parent
101e9d93fa
commit
031fd5fc59
@ -51,7 +51,7 @@ public class DataApiCreateCollectionOpDispenser extends DataApiOpDispenser {
|
||||
Optional<LongFunction<String>> simFunc = op.getAsOptionalFunction("similarity", String.class);
|
||||
if (simFunc.isPresent()) {
|
||||
LongFunction<String> sf = simFunc.get();
|
||||
optionsBldr.vectorSimilarity(SimilarityMetric.valueOf(sf.apply(l)));
|
||||
optionsBldr.vectorSimilarity(SimilarityMetric.fromValue(sf.apply(l)));
|
||||
}
|
||||
|
||||
DataApiCreateCollectionOp dataApiCreateCollectionOp =
|
||||
|
@ -8,4 +8,4 @@ blocks:
|
||||
op1:
|
||||
create_collection: "collectionName"
|
||||
dimensions: 10
|
||||
similarity: "cosine"
|
||||
similarity: "COSINE"
|
||||
|
Loading…
Reference in New Issue
Block a user