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

Cast document_ids as strings #284

Merged
merged 1 commit into from
Aug 3, 2020
Merged

Cast document_ids as strings #284

merged 1 commit into from
Aug 3, 2020

Conversation

tanaysoni
Copy link
Contributor

The Document.id values are currently expected to be UUIDs. They are either generated automatically by Haystack when indexing in a new document store or get UUIDs assigned from user-supplied hex string when reading from an existing document store.

To support arbitrary IDs(strings/numeric) from existing document stores, this PR refactors IDs to always be strings.

For creating new document stores, the IDs are still UUID strings to prevent duplicates.

Related issue: #278

@tanaysoni tanaysoni merged commit 7239214 into master Aug 3, 2020
@tanaysoni tanaysoni deleted the uuid-to-str branch August 3, 2020 14:20
@tanaysoni tanaysoni changed the title WIP: Cast document_ids as strings Cast document_ids as strings Aug 3, 2020
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