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

Evaluate indexing strategies in Elasticsearch for multiple classifications #1046

Open
fmendezh opened this issue Mar 14, 2024 · 1 comment
Open
Assignees

Comments

@fmendezh
Copy link
Contributor

fmendezh commented Mar 14, 2024

Evaluate different approaches to index multiple taxonomies: multiples indices vs adding nested elements for multiple classifications.

@djtfmartin
Copy link
Collaborator

djtfmartin commented Sep 3, 2024

So far work has only focussed on adding nested elements to the elastic index for multiple classifications.

An important requirement is to be able search by taxonKey for a specified checklistKey. This requires a compound query and needs to be accurate to avoid a match on taxonKey and checklistKey, where the taxonKey is in one subobject (classification), and the checklistKey is in another subobject (classification) in the save index elastic document.

Currently considering 4 potential strategies:

  • Nested objects for storing multiple classifications (current approach). The potential downside of this is nested objects are indexed as separate documents, hence querying them can be more expensive. This needs to be tested at volume.
  • Dynamic objects for storing multiple classifications
  • Encode checklistKey with taxonKeys - making a compound key and hence a unique taxonKey across checklists
  • Make GUIDs mandatory for taxonKeys to avoid clashes (potentially provided by matching-ws services
    • CoL identifiers need a sensible prefix for indexing to avoid potential clashes
    • Legacy GBIF identifiers need a sensible prefix for indexing to avoid potential clashes
    • other sources such as WoRMS are ok

djtfmartin added a commit that referenced this issue Sep 11, 2024
djtfmartin added a commit that referenced this issue Sep 11, 2024
djtfmartin added a commit that referenced this issue Sep 12, 2024
djtfmartin added a commit that referenced this issue Sep 12, 2024
djtfmartin added a commit that referenced this issue Sep 13, 2024
djtfmartin added a commit that referenced this issue Sep 13, 2024
djtfmartin added a commit to gbif/key-value-store that referenced this issue Sep 19, 2024
djtfmartin added a commit that referenced this issue Sep 19, 2024
djtfmartin added a commit that referenced this issue Sep 19, 2024
djtfmartin added a commit to gbif/key-value-store that referenced this issue Sep 19, 2024
djtfmartin added a commit that referenced this issue Oct 1, 2024
djtfmartin added a commit that referenced this issue Oct 1, 2024
djtfmartin added a commit that referenced this issue Oct 1, 2024
djtfmartin added a commit that referenced this issue Oct 1, 2024
djtfmartin added a commit that referenced this issue Oct 2, 2024
djtfmartin added a commit to gbif/key-value-store that referenced this issue Oct 2, 2024
djtfmartin added a commit that referenced this issue Oct 2, 2024
djtfmartin added a commit that referenced this issue Oct 3, 2024
djtfmartin added a commit that referenced this issue Oct 3, 2024
djtfmartin added a commit that referenced this issue Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants