Field caps api incorrect reports a doc values only scaled float field as not searchable #97394
Labels
>bug
:Search Foundations/Mapping
Index mappings, including merging and defining field types
:StorageEngine/TSDB
You know, for Metrics
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Reproduction:
Field caps response:
Both fields aren't indexed by default (because marked as time series metric), but do have doc values.
Which means the fields are searchable, but slow. However for the scaled float field, field caps reports that it isn't searchable. Which isn't correct. Field caps should report that field3 is searchable.
Looking at the mapping code the
ScaledFloatFieldType
extends fromMappedFieldType
and that returns searchable only for indexed fields. EitherMappedFieldType
should overwrite theisSearchable()
method or extend fromNumberFieldType
.The text was updated successfully, but these errors were encountered: