diff --git a/milvus-plus-core/src/main/java/org/dromara/milvus/plus/annotation/MilvusIndex.java b/milvus-plus-core/src/main/java/org/dromara/milvus/plus/annotation/MilvusIndex.java index 8ed8f28..dd65b82 100644 --- a/milvus-plus-core/src/main/java/org/dromara/milvus/plus/annotation/MilvusIndex.java +++ b/milvus-plus-core/src/main/java/org/dromara/milvus/plus/annotation/MilvusIndex.java @@ -7,14 +7,34 @@ import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; + /** * @author xgc **/ @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface MilvusIndex { - IndexParam.IndexType indexType() default IndexParam.IndexType.FLAT; // 索引类型 - IndexParam.MetricType metricType() default IndexParam.MetricType.L2; // 度量类型 - String indexName() default ""; // 索引名称 - ExtraParam[] extraParams() default {}; // 指定额外的参数 + /** + * 索引类型 + * + * @see IndexParam.IndexType + */ + IndexParam.IndexType indexType() default IndexParam.IndexType.FLAT; + + /** + * 度量类型 + * + * @see IndexParam.MetricType + */ + IndexParam.MetricType metricType() default IndexParam.MetricType.L2; + + /** + * 索引名称 + */ + String indexName() default ""; + + /** + * 指定额外的参数 + */ + ExtraParam[] extraParams() default {}; } \ No newline at end of file