- Notifications
You must be signed in to change notification settings - Fork 25.5k
Open
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustacheenhancement"" muted="" aria-describedby="MDU6TGFiZWwyMzE3NA==-tooltip :R5b96b:">>enhancementMetaTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra team
Description
We need to make all the mapped types (that make sense to expose) available for the scripting fields api. The following is a list of all mapped field types:
Second check box shows support for source fallback.
Done
- binary (@jdconrad) Add BinaryDocValuesField to replace BytesRef (ScriptDocValues) #79760
- boolean (@stu-elastic) Script: support boolean fields in Fields API #80043
- keyword (@stu-elastic) Script: keyword fields api support #81266
- long (@stu-elastic) Script: fields API for byte, double, float, integer, long, short #81126
- integer (@stu-elastic) Script: fields API for byte, double, float, integer, long, short #81126
- short (@stu-elastic) Script: fields API for byte, double, float, integer, long, short #81126
- byte (@stu-elastic) Script: fields API for byte, double, float, integer, long, short #81126
- double (@stu-elastic) Script: fields API for byte, double, float, integer, long, short #81126
- float (@stu-elastic) Script: fields API for byte, double, float, integer, long, short #81126
- scaled_float (@jdconrad) (Add scaled float to the scripting fields API #82275)
- half_float (@jdconrad) (Add half float mapping to the scripting fields API #82294)
- unsigned_long (@stu-elastic) (@jdconrad) Update Painless Fields API design to use mapped types #78950
- date (@jdconrad) Add date fields to the scripting fields api #81272
- date_nanos (@jdconrad) Add date fields to the scripting fields api #81272
- ip (@stu-elastic) Script: fields API for IP mapped type #81396
- _version (@stu-elastic) Script: fields API for x-pack version, doc version, seq no, mumur3 #81476
- sequence number (@stu-elastic) Script: fields API for x-pack version, doc version, seq no, mumur3 #81476
- version (@stu-elastic) Script: fields API for x-pack version, doc version, seq no, mumur3 #81476
- murmur3 (@stu-elastic) Script: fields API for x-pack version, doc version, seq no, mumur3 #81476
- constant_keyword (@stu-elastic) Script: fields API for x-pack constant_keyword #82292
- wildcard (@jdconrad) Make wildcard accessible from the scripting field API #82763
- flattened (@stu-elastic) Script: fields API for flattened mapped type #82590
- text - (@jdconrad) Add text field support in the Painless scripting fields API #89396
Must
(Completed)
Nice to have
- object - may require some design
- nested - requires design
- join
- integer_range Add scripting support for ranges #50190
- float_range
- long_range
- double_range
- date_range
- ip_range
- histogram
- dense_vector - (@stu-elastic) Script: Fields API for Dense Vector #83550
- sparse_vector (re-included in 8.11)
Unsupported
- alias
- aggregate_metric_double
- match_only_text
- annotated_text
- completion
- search_as_you_type
- token_count
- rank_feature
- rank_features
- percolator
Discuss
- geo_point (@jdconrad) Add a geo point field for the scripting fields api #81395 Discuss exposure of geo fields as part of the scripting fields API #82229
- geo_shape (@jdconrad) Add support for GeoShape to the scripting fields API #81617 Discuss exposure of geo fields as part of the scripting fields API #82229
- point - not supported by doc values, requires source parsing
- shape - not supported by doc values, requires source parsing
The following links have tests that may be re-usable as we add in certain basic field types:
- possible tests for boolean, long, double, and date
- possible tests for boolean, long, double, and date
- possible tests for boolean, long, double, and date
- possible tests long, double
- possible tests for double
- possible re-use of several field classes populated w/ data for other tests
- possible re-use of some code for conversion testing
- possible tests for unsigned long
- possible conversion tests for unsigned long
Metadata
Metadata
Assignees
Labels
:Core/Infra/ScriptingScripting abstractions, Painless, and MustacheScripting abstractions, Painless, and Mustacheenhancement"" muted="" aria-describedby="MDU6TGFiZWwyMzE3NA==-tooltip :Ra5pmb:">>enhancementMetaTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra team