knn,其中type要设置为dense vector,其他参数参考文档, * 建议和我的一致,similarity设置为你需要的相似函数(欧几里得或者cos) * www.elastic.co/guide/en/elasticsearch/reference/8.12/dense-vector.html */@Field(type=FieldType.Dense_Vector,dims=1024,index=true,similarity="cosine")privateList<Float>vector;...
spring-data-elasticsearch FieldType 代码 文件路径:/src/main/java/org/springframework/data/elasticsearch/annotations/FieldType.java /* * Copyright 2013-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except i...
Spring Data Elasticsearch 5.2 Reference documentation Spring Data Elasticsearch 5.2 Javadoc 🐞 Bug Fixes max dims of dense_vector field type should be increased#2911 Assets2 Loading 17 May 10:07 mp911de 5.3.0 2b76762 Compare Assets2 🚀3andreibaptista, JKatzwinkel, and uqurcetin reacted with...