[
https://issues.apache.org/jira/browse/USERGRID-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14389442#comment-14389442
]
ASF GitHub Bot commented on USERGRID-526:
-----------------------------------------
Github user tnine commented on a diff in the pull request:
https://github.com/apache/incubator-usergrid/pull/204#discussion_r27524643
--- Diff:
stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EntityToMapConverter.java
---
@@ -137,6 +118,52 @@ else if ( f instanceof UUIDField ) {
return entityMap;
}
+ private static void putList(Map<String, Object> entityMap, Field
field, List list, boolean isRootLevel) {
+ if ( !list.isEmpty() ) {
+ if(isRootLevel) {
--- End diff --
Will this work for nested? I.E this
{
"sub1" :{
"sub2":{
"arrayofstrings": ["foo", "bar"]
}
}
}
> store root array types in field names for elasticsearch
> -------------------------------------------------------
>
> Key: USERGRID-526
> URL: https://issues.apache.org/jira/browse/USERGRID-526
> Project: Usergrid
> Issue Type: Story
> Components: Stack
> Reporter: Shawn Feldman
> Assignee: Shawn Feldman
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)