File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
src/test/java/org/springframework/data/elasticsearch/core/index Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 43
43
import org .springframework .context .annotation .Import ;
44
44
import org .springframework .data .annotation .Id ;
45
45
import org .springframework .data .elasticsearch .NewElasticsearchClientDevelopment ;
46
- import org .springframework .data .elasticsearch .annotations .DateFormat ;
47
- import org .springframework .data .elasticsearch .annotations .Document ;
48
- import org .springframework .data .elasticsearch .annotations .Dynamic ;
49
- import org .springframework .data .elasticsearch .annotations .Field ;
50
- import org .springframework .data .elasticsearch .annotations .FieldType ;
51
- import org .springframework .data .elasticsearch .annotations .InnerField ;
52
- import org .springframework .data .elasticsearch .annotations .Mapping ;
53
- import org .springframework .data .elasticsearch .annotations .MultiField ;
54
- import org .springframework .data .elasticsearch .annotations .Setting ;
55
- import org .springframework .data .elasticsearch .annotations .TermVector ;
46
+ import org .springframework .data .elasticsearch .annotations .*;
56
47
import org .springframework .data .elasticsearch .core .ElasticsearchOperations ;
57
48
import org .springframework .data .elasticsearch .core .IndexOperations ;
58
49
import org .springframework .data .elasticsearch .core .MappingContextBaseTests ;
@@ -913,7 +904,7 @@ static class SimilarityEntity {
913
904
@ Nullable
914
905
@ Id private String id ;
915
906
916
- @ Field (type = FieldType .Dense_Vector , dims = 42 , similarity = "cosine" ) private double [] denseVector ;
907
+ @ Field (type = FieldType .Dense_Vector , dims = 42 , similarity = Similarity . classic ) private double [] denseVector ;
917
908
}
918
909
919
910
// endregion
You can’t perform that action at this time.
0 commit comments