Annotation Interface DistanceProjection
@Documented
@Target(PARAMETER)
@Retention(RUNTIME)
@MethodParameterMapping(processor=@MethodParameterMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.DistanceProjectionProcessor.class,retrieval=CONSTRUCTOR))
public @interface DistanceProjection
Maps a constructor parameter to a distance projection,
i.e. sequences of text that matched the query, extracted from the given field's value.
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
path
-
fromParam
String fromParam- Returns:
- The name of a
query parameterthat will represent aGeoPointpoint, from which the distance to the field value will be calculated. - See Also:
-
unit
org.hibernate.search.engine.spatial.DistanceUnit unit- Returns:
- The unit of the computed distance (default is meters).
- Default:
METERS
-