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 2014/10/01 16:51:52 UTC

[16/35] git commit: Fix bug that was preventing boolean fields from being indexed correctly in ES.

Fix bug that was preventing boolean fields from being indexed correctly in ES.


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

Branch: refs/heads/two-dot-o-rebuildable-index
Commit: 49108ef6c2134d9e8c46c0be3e163df1dfefd907
Parents: 3f6d7b4
Author: Dave Johnson <dm...@apigee.com>
Authored: Sun Sep 28 12:36:49 2014 -0400
Committer: Dave Johnson <dm...@apigee.com>
Committed: Sun Sep 28 12:36:49 2014 -0400

----------------------------------------------------------------------
 .../usergrid/persistence/index/impl/EsEntityIndexImpl.java       | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/49108ef6/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EsEntityIndexImpl.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EsEntityIndexImpl.java b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EsEntityIndexImpl.java
index 4843854..15fadd5 100644
--- a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EsEntityIndexImpl.java
+++ b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EsEntityIndexImpl.java
@@ -528,10 +528,6 @@ public class EsEntityIndexImpl implements EntityIndex {
                 locMap.put("lon", locField.getValue().getLongtitude());
                 entityMap.put( GEO_PREFIX + field.getName().toLowerCase(), locMap);
 
-            } else if ( f instanceof BooleanField  ) {
-
-                entityMap.put( NUMBER_PREFIX + field.getName().toLowerCase(), field.getValue());
-
             } else if ( f instanceof DoubleField
                      || f instanceof FloatField
                      || f instanceof IntegerField