polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From soelvs...@apache.org
Subject zest-java git commit: ZEST-118 bugfix: _types in json should contain "Person", not "interface Person"
Date Wed, 02 Sep 2015 08:41:10 GMT
Repository: zest-java
Updated Branches:
  refs/heads/develop 7428740d2 -> 805eb1734


ZEST-118 bugfix: _types in json should contain "Person", not "interface Person"


Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/805eb173
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/805eb173
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/805eb173

Branch: refs/heads/develop
Commit: 805eb17347a3ec7b1e46452fbb7c5a2d2da4e375
Parents: 7428740
Author: Kent Sølvsten <soelvsten@apache.org>
Authored: Wed Sep 2 10:40:57 2015 +0200
Committer: Kent Sølvsten <soelvsten@apache.org>
Committed: Wed Sep 2 10:40:57 2015 +0200

----------------------------------------------------------------------
 .../apache/zest/index/elasticsearch/ElasticSearchIndexer.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-java/blob/805eb173/extensions/indexing-elasticsearch/src/main/java/org/apache/zest/index/elasticsearch/ElasticSearchIndexer.java
----------------------------------------------------------------------
diff --git a/extensions/indexing-elasticsearch/src/main/java/org/apache/zest/index/elasticsearch/ElasticSearchIndexer.java
b/extensions/indexing-elasticsearch/src/main/java/org/apache/zest/index/elasticsearch/ElasticSearchIndexer.java
old mode 100644
new mode 100755
index 6929351..65ca307
--- a/extensions/indexing-elasticsearch/src/main/java/org/apache/zest/index/elasticsearch/ElasticSearchIndexer.java
+++ b/extensions/indexing-elasticsearch/src/main/java/org/apache/zest/index/elasticsearch/ElasticSearchIndexer.java
@@ -30,6 +30,7 @@ import org.apache.zest.api.mixin.Mixins;
 import org.apache.zest.api.service.qualifier.Tagged;
 import org.apache.zest.api.type.ValueType;
 import org.apache.zest.api.usecase.UsecaseBuilder;
+import org.apache.zest.api.util.Classes;
 import org.apache.zest.api.value.ValueSerialization;
 import org.apache.zest.api.value.ValueSerializer;
 import org.apache.zest.api.value.ValueSerializer.Options;
@@ -190,7 +191,8 @@ public interface ElasticSearchIndexer
             try
             {
                 json.put( "_identity", state.identity().identity() );
-                json.put( "_types", state.entityDescriptor().mixinTypes().collect( Collectors.toList()
) );
+                json.put( "_types", state.entityDescriptor().mixinTypes().map( Classes.toClassName()
).collect( Collectors
+                                                                                        
                          .toList() ) );
             }
             catch( JSONException e )
             {


Mime
View raw message