usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject [1/2] incubator-usergrid git commit: add another test for index
Date Wed, 26 Nov 2014 00:37:53 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/index-alias b376cfd13 -> cfa73b43a


add another test for index


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

Branch: refs/heads/index-alias
Commit: 0273c5581f827dfa586bc0ddaa18d783c37f1a18
Parents: b376cfd
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Tue Nov 25 14:18:51 2014 -0700
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Tue Nov 25 14:18:51 2014 -0700

----------------------------------------------------------------------
 .../usergrid/persistence/index/impl/EntityIndexTest.java       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/0273c558/stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityIndexTest.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityIndexTest.java
b/stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityIndexTest.java
index 8ea8835..0e0e81d 100644
--- a/stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityIndexTest.java
+++ b/stack/corepersistence/queryindex/src/test/java/org/apache/usergrid/persistence/index/impl/EntityIndexTest.java
@@ -131,8 +131,12 @@ public class EntityIndexTest extends BaseIT {
 
         insertJsonBlob(entityIndex, entityType, indexScope, "/sample-large.json",100,100);
 
-        testQueries( indexScope, searchTypes,  entityIndex );
+        entityIndex.refresh();
+
+        //Hilda Youn
+        testQuery(indexScope, searchTypes, entityIndex, "name = 'Hilda Young'", 1 );
 
+        testQuery(indexScope, searchTypes, entityIndex, "name = 'Lowe Kelley'", 1 );
     }
 
     private void insertJsonBlob(EntityIndex entityIndex, String entityType, IndexScope indexScope,
String filePath,final int max,final int startIndex) throws IOException {


Mime
View raw message