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

refactor: Using the metadata.name instead metadata.id for search index #3994

Conversation

frascuchon
Copy link
Member

Description

This PR changes how metadata info is indexed in Elasticsearch, by using names instead of ids. The aim of this code refactoring is to make raw indexes more user-friendly and let the possibility of using the Lucene query DSL for filtering data from Argilla (as we already do for other tasks).

@frascuchon frascuchon changed the title refactor: Using the metadata.name instead metadata.id for search index refactor: Using the metadata.name instead metadata.id for search index Oct 19, 2023
@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Files Coverage Δ
.../argilla/client/feedback/dataset/remote/dataset.py 93.14% <100.00%> (ø)
src/argilla/server/search_engine/commons.py 92.80% <50.00%> (ø)

📢 Thoughts on this report? Let us know!.

@github-actions
Copy link

The URL of the deployed environment for this PR is https://argilla-quickstart-pr-3994-ki24f765kq-no.a.run.app

@frascuchon frascuchon merged commit 239b593 into develop Oct 19, 2023
@frascuchon frascuchon deleted the refactor/use-metadata-name-instead-of-id-for-search-engine-index branch October 19, 2023 20:13
damianpumar pushed a commit that referenced this pull request Oct 24, 2023
…index (#3994)

<!-- Thanks for your contribution! As part of our Community Growers
initiative 🌱, we're donating Justdiggit bunds in your name to reforest
sub-Saharan Africa. To claim your Community Growers certificate, please
contact David Berenstein in our Slack community or fill in this form
https://tally.so/r/n9XrxK once your PR has been merged. -->

# Description

This PR changes how metadata info is indexed in Elasticsearch, by using
names instead of ids. The aim of this code refactoring is to make raw
indexes more user-friendly and let the possibility of using the Lucene
query DSL for filtering data from Argilla (as we already do for other
tasks).

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

1 participant