Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HSEARCH-2326 State the distance unit in the documentation for SPATIAL…
…_DISTANCE
  • Loading branch information
yrodiere committed Aug 23, 2016
1 parent 68d94e7 commit 48337fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion documentation/src/main/asciidoc/spatial.asciidoc
Expand Up @@ -275,7 +275,7 @@ List results = fullTextSession.createFullTextQuery( query, POI.class ).list();
[[spatial-distance-projection]]
===== Returning distance to the center in the results

To retrieve the actual distance values you need to use projection (see <<projections>>):
To retrieve the actual distance values (in kilometers) you need to use projection (see <<projections>>):

.Distance projection example
====
Expand Down
Expand Up @@ -38,7 +38,8 @@ public interface ElasticsearchProjectionConstants {
String OBJECT_CLASS = "_hibernate_class";

/**
* Represents the distance between an entity and the center of the search radius in case of a spatial query
* Represents the distance (in kilometers) between an entity and the
* center of the search area in case of a spatial query.
*/
// TODO HSEARCH-2268: Make it start with "__"
String SPATIAL_DISTANCE = "_HSearch_SpatialDistance";
Expand Down
Expand Up @@ -61,7 +61,8 @@ public interface ProjectionConstants {
String OBJECT_CLASS = "_hibernate_class";

/**
* Represents the distance between an entity and the center of the search radius in case of a spatial query
* Represents the distance (in kilometers) between an entity and the
* center of the search area in case of a spatial query.
*/
// TODO HSEARCH-2268: Make it start with "__"
String SPATIAL_DISTANCE = "_HSearch_SpatialDistance";
Expand Down

0 comments on commit 48337fe

Please sign in to comment.