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 2015/03/05 02:55:20 UTC
[4/5] incubator-usergrid git commit: Revert "Merge branch
'context-term-hotfix' into two-dot-o"
Revert "Merge branch 'context-term-hotfix' into two-dot-o"
This reverts commit ef3f77da6948d7c6c0c5d846d7786d9b7186a279, reversing
changes made to c1f5b78429b1017bf7bc685c7c09f5c762ab7027.
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/710a1a3c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/710a1a3c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/710a1a3c
Branch: refs/heads/USERGRID-405
Commit: 710a1a3c171bd67c549e98178db256a0efb75073
Parents: ef3f77d
Author: Todd Nine <tn...@apigee.com>
Authored: Wed Mar 4 18:42:30 2015 -0700
Committer: Todd Nine <tn...@apigee.com>
Committed: Wed Mar 4 18:42:30 2015 -0700
----------------------------------------------------------------------
.../java/org/apache/usergrid/persistence/index/query/Query.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/710a1a3c/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/query/Query.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/query/Query.java b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/query/Query.java
index 3720987..da68772 100644
--- a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/query/Query.java
+++ b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/query/Query.java
@@ -176,12 +176,12 @@ public class Query {
// Do we need to put the context term first for performance?
if ( queryBuilder != null ) {
queryBuilder = QueryBuilders.boolQuery().must( queryBuilder ).must( QueryBuilders
- .matchQuery( IndexingUtils.ENTITY_CONTEXT_FIELDNAME, context ) );
+ .termQuery( IndexingUtils.ENTITY_CONTEXT_FIELDNAME, context ) );
}
//nothing was specified ensure we specify the context in the search
else {
- queryBuilder = QueryBuilders.matchQuery( IndexingUtils.ENTITY_CONTEXT_FIELDNAME, context );
+ queryBuilder = QueryBuilders.termQuery( IndexingUtils.ENTITY_CONTEXT_FIELDNAME, context );
}
return queryBuilder;