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

Injecting/prioritising search results #10

Open
adamgundry opened this issue May 17, 2022 · 0 comments
Open

Injecting/prioritising search results #10

adamgundry opened this issue May 17, 2022 · 0 comments

Comments

@adamgundry
Copy link
Member

Sometimes client code would like to insert additional results, typically in front of the full-text-search results. For example haskell/hackage-server@cf0f17e added a feature to hackage-server to prioritize exact package name matches. I've also got an application that does this by looking up query terms in a separate map. Of course the remaining results then need to be filtered to leave out those that have been prioritized.

It isn't clear if this needs to be in full-text-search itself or if it can just be implemented by the client. The implementation in hackage-server adds a new function lookupDocKeyReal, so we might need an equivalent of that at least.

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

1 participant