mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-22 20:12:11 +00:00
parent
16e0f566cd
commit
9fea1365ac
@ -8,16 +8,21 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.data.annotation.ReadOnlyProperty;
|
||||
import org.springframework.data.elasticsearch.core.SearchHit;
|
||||
|
||||
/**
|
||||
* Specifies that this field is used for storing the document score.
|
||||
*
|
||||
* @author Sascha Woo
|
||||
* @author Peter-Josef Meisch
|
||||
* @since 3.1
|
||||
* @deprecated since 4.0, use {@link SearchHit#getScore()} instead
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
@Documented
|
||||
@Inherited
|
||||
@ReadOnlyProperty
|
||||
public @interface Score {}
|
||||
@Deprecated
|
||||
public @interface Score {
|
||||
}
|
||||
|
@ -63,7 +63,9 @@ public interface ElasticsearchPersistentEntity<T> extends PersistentEntity<T, El
|
||||
*
|
||||
* @return false when {@link ElasticsearchPersistentEntity} does not define a score property.
|
||||
* @since 3.1
|
||||
* @deprecated since 4.0
|
||||
*/
|
||||
@Deprecated
|
||||
boolean hasScoreProperty();
|
||||
|
||||
/**
|
||||
@ -73,7 +75,9 @@ public interface ElasticsearchPersistentEntity<T> extends PersistentEntity<T, El
|
||||
* @return the score {@link ElasticsearchPersistentProperty} of the {@link PersistentEntity} or {@literal null} if not
|
||||
* defined.
|
||||
* @since 3.1
|
||||
* @deprecated since 4.0
|
||||
*/
|
||||
@Nullable
|
||||
@Deprecated
|
||||
ElasticsearchPersistentProperty getScoreProperty();
|
||||
}
|
||||
|
@ -16,6 +16,7 @@
|
||||
package org.springframework.data.elasticsearch.core.mapping;
|
||||
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
import org.springframework.data.elasticsearch.core.SearchHit;
|
||||
import org.springframework.data.mapping.PersistentProperty;
|
||||
import org.springframework.lang.Nullable;
|
||||
|
||||
@ -46,7 +47,9 @@ public interface ElasticsearchPersistentProperty extends PersistentProperty<Elas
|
||||
*
|
||||
* @return
|
||||
* @since 3.1
|
||||
* @deprecated since 4.0, use {@link SearchHit#getScore()} instead
|
||||
*/
|
||||
@Deprecated
|
||||
boolean isScoreProperty();
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user