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

expose metadata also in .filter() results #279

Open
valentijnscholten opened this issue Sep 15, 2020 · 3 comments
Open

expose metadata also in .filter() results #279

valentijnscholten opened this issue Sep 15, 2020 · 3 comments

Comments

@valentijnscholten
Copy link

Currently when using .search() you can access the metadata of each searchresult using result.meta['xxxx'] or result.meta.xxxx.

When using .filter() on en existing queryset, this metadata is not exposed. Would be helpful to access the metadata here as it could contain data not available in the queryset models or the result of some expensive calculation performed during indexing.

@etianen
Copy link
Owner

etianen commented Sep 15, 2020 via email

@valentijnscholten
Copy link
Author

the watson_rank is exposed, so meta could be exposed to (as dictionary)?

I need to perform some filtering and prefetching before performing the full text search.

@etianen
Copy link
Owner

etianen commented Sep 17, 2020 via email

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