Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • nomad-FAIR nomad-FAIR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 40
    • Merge requests 40
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nomad-labnomad-lab
  • nomad-FAIRnomad-FAIR
  • Issues
  • #767
Closed
Open
Issue created Mar 16, 2022 by Lauri Himanen@himanel1Maintainer

ElasticSearch upgrade for v0.x

We need to update to a newer ElasticSearch version (7.17) on the v0.x branch. The breaking changes can be found here. In practice this means the following tasks:

  • Update our docker files to use the newer version
  • Update the DSL version
  • Update our mapping to conform to the new version:
    • ES 7 has removed mapping types: we need to simply remove these from our mapping: they are not used for identifying any resources (e.g. the index already tells if we are targeting materials or entries).
  • Update any deprecated DSL calls/response handling:
    • hits.total is now an object
    • hits.total is now by default accurately tracking hits only up to 10 000 items. To enable tracking all search results, we need to provide the option track_total_hits=True.
    • elasticsearch_dsl.utils.AttrDict is no longer considered a valid dict type by pydantic, must call .to_dict()
    • The call signature for the scroll API has changed: you now have to provide scroll_id within a request body.
Edited Mar 18, 2022 by Lauri Himanen
Assignee
Assign to
Time tracking