You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by to...@apache.org on 2014/12/03 23:29:18 UTC
[11/22] incubator-usergrid git commit: add another test for index
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/two-dot-o
Commit: 0273c5581f827dfa586bc0ddaa18d783c37f1a18
Parents: b376cfd
Author: Shawn Feldman <sf...@apache.org>
Authored: Tue Nov 25 14:18:51 2014 -0700
Committer: Shawn Feldman <sf...@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 {