org.hibernate.search.query.dsl.SpatialContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Core of the Object/Lucene mapper, query engine and index management
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.search.query.dsl;
/**
* @author Emmanuel Bernard
*/
public interface SpatialContext extends QueryCustomization, SpatialMatchingContext {
//TODO score by proximity
/**
* Used to select the spatial field/coordinates used for this query. If not specified, the default field
* ({@link org.hibernate.search.annotations.Spatial#COORDINATES_DEFAULT_FIELD}) is used.
*
*
* Note: An entity can have multiple {@link org.hibernate.search.annotations.Spatial} annotations defining
* different sets of coordinates. Each non-default {@code Spatial} instance has a name to identify it. Use this method
* to specify the targeted coordinate field.
*
*
* @param fieldName The name of the set of coordinates to target for the query
*
* @return {@code SpatialMatchingContext} instance for continuation
*/
SpatialMatchingContext onField(String fieldName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy