Skip to content

Commit

Permalink
Use euclidean distance in similarity field type
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Jan 29, 2024
1 parent b8a6e98 commit 92461a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/search/solr9/cores/freesound/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
performing any ranking -->
<similarity class="solr.BooleanSimilarityFactory"/>
</fieldType>
<fieldType name="knn_vector100" class="solr.DenseVectorField" vectorDimension="100" similarityFunction="cosine" knnAlgorithm="hnsw" hnswMaxConnections="10" hnswBeamWidth="40"/>
<fieldType name="knn_vector100" class="solr.DenseVectorField" vectorDimension="100" similarityFunction="euclidean" knnAlgorithm="hnsw" hnswMaxConnections="10" hnswBeamWidth="40"/>

<field name="_root_" type="string" docValues="false" indexed="true" stored="false"/>
<field name="_text_" type="text_general" multiValued="true" indexed="true" stored="false"/>
Expand Down

0 comments on commit 92461a2

Please sign in to comment.