Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier access to details from version field #62952

Closed
cbuescher opened this issue Sep 28, 2020 · 4 comments
Closed

Easier access to details from version field #62952

cbuescher opened this issue Sep 28, 2020 · 4 comments
Assignees
Labels
>enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Comments

@cbuescher
Copy link
Member

This is a follow up to #59773 in which we added support for a new field type for software versions.
During discussing the requirements for the new type some asks were made to be able to access common parts of the version string like the major, minor or patch version, whether the version is a pre-release or a release or wether a given stored value is valid under e.g. the SemVer naming conventions. This information would be useful in searches or aggregations e.g. for filtering out only "released" versions or hierarchically aggregating e.g. major, minor or patch versions.

While working on #59773 the following solutions were discusse:

  • extracting this information already when indexing the values and storing them in subfields of the main field.
    • Advantages: fast and easy access in filters and aggs via named subfield
    • Disadvantages: additional storage cost for numeric / boolean fields. This could partially be alleviated by making this behaviour an opt-in via a parameter on the field type
  • offering simplified access to version details through specialices scripting functions that would be able to extract e.g. major/minor etc... at runtime from the original value via scrpts. This was e.g. discussed here

However, none of the above ideas could be utimately aggreed on yet so we decided to postpone adding this extra functionality in the first version of the field type to re-discuss the goals and options which this issue is about.

@cbuescher cbuescher added >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types v8.0.0 labels Sep 28, 2020
@cbuescher cbuescher self-assigned this Sep 28, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Mapping)

@elasticmachine elasticmachine added the Team:Search Meta label for search team label Sep 28, 2020
@cbuescher
Copy link
Member Author

Draft for the second option factored out here: #62953

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@javanna javanna removed the v8.6.0 label Sep 22, 2022
@javanna
Copy link
Member

javanna commented Jun 24, 2024

This has been open for quite a while, and hasn't had a lot of interest. For now I'm going to close this as something we aren't planning on implementing. We can re-open it later if needed.

@javanna javanna closed this as not planned Won't fix, can't repro, duplicate, stale Jun 24, 2024
@javanna javanna added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch and removed Team:Search Meta label for search team labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

9 participants