Github user kaspersorensen commented on a diff in the pull request:
https://github.com/apache/metamodel/pull/98#discussion_r61196721
--- Diff:
elasticsearch/common/src/main/java/org/apache/metamodel/elasticsearch/common/ElasticSearchUtils.java
---
@@ -95,17 +103,49 @@ public static QueryBuilder getExistsQuery(String
fieldName) {
// do nothing - the ID is a client-side construct
continue;
}
- sourceProperties.add(columnName);
+
+ final String fieldName = getValidatedFieldName(columnName);
+ final Map<String, String> propertyMap = new HashMap<>();
+ final String type = getType(column);
+ propertyMap.put("type", type);
+// propertyMap.put("store", "true");
--- End diff --
Ah good that you mentioned it. I couldn't find the "store" attribute in
newer versions of the ElasticSearch REST documentation [1]. So I think it won't
work anymore ... My guess (at least my evidence so far when working with this)
is that there isn't an option anymore to not store field values.
[1]
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---