diff --git a/spring-data-commons-core/src/main/java/org/springframework/data/annotation/Indexed.java b/spring-data-commons-core/src/main/java/org/springframework/data/annotation/Indexed.java index 0fba4601a..0937fd6fa 100644 --- a/spring-data-commons-core/src/main/java/org/springframework/data/annotation/Indexed.java +++ b/spring-data-commons-core/src/main/java/org/springframework/data/annotation/Indexed.java @@ -5,9 +5,15 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +/** + * Annotated fields and entities will be indexed and available for retrieval using an indexing API. + */ @Retention(RetentionPolicy.RUNTIME) @Target( value = {ElementType.FIELD,ElementType.TYPE}) public @interface Indexed { - String name() default ""; + /** + * Name of the index to use. + */ + String indexName() default ""; }