You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2015/11/10 15:33:17 UTC

[3/5] usergrid git commit: Only exclude distance field when distance >= 0 (0 is a valid distance)

Only exclude distance field when distance >= 0 (0 is a valid distance)


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/73cbd2ef
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/73cbd2ef
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/73cbd2ef

Branch: refs/heads/master
Commit: 73cbd2ef2156cd494db60bdd3d63c90386ac13bf
Parents: 5cc0b38
Author: Dave Johnson <sn...@apache.org>
Authored: Tue Nov 10 09:29:02 2015 -0500
Committer: Dave Johnson <sn...@apache.org>
Committed: Tue Nov 10 09:29:02 2015 -0500

----------------------------------------------------------------------
 .../org/apache/usergrid/persistence/index/impl/IndexingUtils.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/73cbd2ef/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/IndexingUtils.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/IndexingUtils.java b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/IndexingUtils.java
index ae2a6e6..90840af 100644
--- a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/IndexingUtils.java
+++ b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/IndexingUtils.java
@@ -256,7 +256,7 @@ public class IndexingUtils {
 
         Id entityId = new SimpleId(UUID.fromString(entityUUID), entityType);
 
-        return distance>0
+        return distance >= 0
             ? new GeoCandidateResult(entityId, UUID.fromString(versionUUID), documentId, distance)
             : new CandidateResult(entityId, UUID.fromString(versionUUID), documentId);
     }