You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by gr...@apache.org on 2015/10/29 17:53:15 UTC
usergrid git commit: There seems to be an error with the content that
is being pushed to elastic search. Something about compressor
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 <gr...@apache.org>
Authored: Thu Oct 29 09:53:12 2015 -0700
Committer: George Reyes <gr...@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 {}",