Skip to content

Document as trait #1352

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

Open
PSeitz opened this issue Apr 29, 2022 · 1 comment
Open

Document as trait #1352

PSeitz opened this issue Apr 29, 2022 · 1 comment

Comments

@PSeitz
Copy link
Collaborator

PSeitz commented Apr 29, 2022

Currently the layout and it's behaviour (serialization etc.) for Document is provided by tantivy.

Users of tantivy have to convert their structure into the tantivy Document.

An alternative approach would be to accept Document as a trait and let tantivy work with Documents via its trait methods.

So instead of converting into Document the user could just implement the Document trait on its structure and also potentially customize serialization into the doc store.

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