usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject usergrid git commit: There seems to be an error with the content that is being pushed to elastic search. Something about compressor
Date Thu, 29 Oct 2015 16:53:15 GMT
Repository: usergrid
Updated Branches:
  refs/heads/usergrid2.0es 96140d3b7 -> bb23c3a26


There seems to be an error with the content that is being pushed to elastic search. Something
about compressor


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

Branch: refs/heads/usergrid2.0es
Commit: bb23c3a26ef0bfe4adf334a3c4b3fcb864c426ab
Parents: 96140d3
Author: George Reyes <grey@apache.org>
Authored: Thu Oct 29 09:53:12 2015 -0700
Committer: George Reyes <grey@apache.org>
Committed: Thu Oct 29 09:53:12 2015 -0700

----------------------------------------------------------------------
 .../usergrid/persistence/index/impl/EsEntityIndexImpl.java      | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/bb23c3a2/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 069fd25..2018ea0 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
@@ -39,6 +39,7 @@ import org.elasticsearch.action.search.SearchScrollRequestBuilder;
 import org.elasticsearch.client.AdminClient;
 import org.elasticsearch.common.settings.Settings;
 import org.elasticsearch.common.unit.TimeValue;
+import org.elasticsearch.common.xcontent.XContentBuilderString;
 import org.elasticsearch.index.query.QueryBuilder;
 import org.elasticsearch.index.query.QueryBuilders;
 import org.elasticsearch.index.query.TermQueryBuilder;
@@ -306,9 +307,9 @@ public class EsEntityIndexImpl implements EntityIndex,VersionedData {
 
         final RetryOperation retryOperation = () -> {
             final String tempId = UUIDGenerator.newTimeUUID().toString();
-
+            XContentBuilderString xContentBuilderString = new XContentBuilderString( "hi"
);
             esProvider.getClient().prepareIndex( alias.getWriteAlias(), VERIFY_TYPE, tempId
)
-                 .setSource(DEFAULT_PAYLOAD).get();
+                 .setSource(xContentBuilderString).get();
 
             logger.info( "Successfully created new document with docId {} "
                  + "in index read {} write {} and type {}",


Mime
View raw message