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/02/16 21:54:23 UTC
incubator-usergrid git commit: Fixes new index document write test
functionality to include new mapping field.
Repository: incubator-usergrid
Updated Branches:
refs/heads/USERGRID-273 e0df161e6 -> c05759133
Fixes new index document write test functionality to include new mapping field.
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/c0575913
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/c0575913
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/c0575913
Branch: refs/heads/USERGRID-273
Commit: c0575913359be5c808c65925a6e16061f7549df6
Parents: e0df161
Author: Todd Nine <tn...@apigee.com>
Authored: Mon Feb 16 12:54:22 2015 -0800
Committer: Todd Nine <tn...@apigee.com>
Committed: Mon Feb 16 12:54:22 2015 -0800
----------------------------------------------------------------------
.../usergrid/persistence/index/impl/EsEntityIndexImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/c0575913/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 cc9a2bd..7eb4aa0 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
@@ -109,7 +109,7 @@ public class EsEntityIndexImpl implements AliasedEntityIndex {
private static final String VERIFY_TYPE = "verification";
private static final ImmutableMap<String, Object> DEFAULT_PAYLOAD =
- ImmutableMap.<String, Object>of( "field", "test" );
+ ImmutableMap.<String, Object>builder().put( "field", "test" ).put(IndexingUtils.ENTITYID_ID_FIELDNAME, UUIDGenerator.newTimeUUID().toString()).build();
private static final MatchAllQueryBuilder MATCH_ALL_QUERY_BUILDER = QueryBuilders.matchAllQuery();
@@ -577,7 +577,7 @@ public class EsEntityIndexImpl implements AliasedEntityIndex {
if ( response.isAcknowledged() ) {
logger.info( "Deleted index: read {} write {}", alias.getReadAlias(), alias.getWriteAlias());
//invlaidate the alias
- aliasCache.invalidate(alias);
+ aliasCache.invalidate( alias );
}
else {
logger.info( "Failed to delete index: read {} write {}", alias.getReadAlias(), alias.getWriteAlias());