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