ElasticSearch 7.2.x rank_features fields not recognized by Kibana 7.2.0

I am attempting to use ElasticSearch 7.x with the new Rank Features data type. However, it doesn't seem to be compatible with Kibana. When making a Kibana Index Pattern, no fields are found from the sample documents I've created, and I see this error in the logs:

elasticsearch_1  | {"type": "server", "timestamp": "2019-07-15T01:20:59,989+0000", "level": "DEBUG", "component": "o.e.a.f.TransportFieldCapabilitiesIndexAction", "cluster.name": "docker-cluster", "node.name": "717b71c89210", "cluster.uuid": "YSmxdhHwQjOkzv24kYN-gw", "node.id": "F3z-0HA6TvOkxL-xwYP1-Q",  "message": "null: failed to execute [org.elasticsearch.action.fieldcaps.FieldCapabilitiesIndexRequest@4f7d3e1e]" ,
elasticsearch_1  | "stacktrace": ["org.elasticsearch.transport.RemoteTransportException: [717b71c89210][172.23.0.2:9300][indices:data/read/field_caps[index][s]]",
elasticsearch_1  | "Caused by: java.lang.UnsupportedOperationException: [rank_feature] fields do not support sorting, scripting or aggregating",
elasticsearch_1  | "at org.elasticsearch.index.mapper.RankFeatureFieldMapper$RankFeatureFieldType.fielddataBuilder(RankFeatureFieldMapper.java:167) ~[?:?]",
elasticsearch_1  | "at org.elasticsearch.index.mapper.MappedFieldType.isAggregatable(MappedFieldType.java:303) ~[elasticsearch-7.2.0.jar:7.2.0]",
elasticsearch_1  | "at org.elasticsearch.action.fieldcaps.TransportFieldCapabilitiesIndexAction.shardOperation(TransportFieldCapabilitiesIndexAction.java:89) ~[elasticsearch-7.2.0.jar:7.2.0]",
elasticsearch_1  | "at org.elasticsearch.action.fieldcaps.TransportFieldCapabilitiesIndexAction.shardOperation(TransportFieldCapabilitiesIndexAction.java:46) ~[elasticsearch-7.2.0.jar:7.2.0]",
elasticsearch_1  | "at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$1.doRun(TransportSingleShardAction.java:113) ~[elasticsearch-7.2.0.jar:7.2.0]",
elasticsearch_1  | "at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:758) [elasticsearch-7.2.0.jar:7.2.0]",
elasticsearch_1  | "at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-7.2.0.jar:7.2.0]",
elasticsearch_1  | "at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]",
elasticsearch_1  | "at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]",
elasticsearch_1  | "at java.lang.Thread.run(Thread.java:835) [?:?]"] }

Before I file this in Github as a bug, I wanted to make sure I wasn't missing something or doing it wrong. I'm able to make Index Patterns for normal documents without rank_feature(s) fields, just not for those that contain them.

I added this detail to https://github.com/elastic/kibana/issues/40385.

@jbudz / @tiago - any input here ? Thanks

Rashmi

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.