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

Search is extremely wonky #7

Closed
krzysz00 opened this issue Oct 14, 2019 · 0 comments
Closed

Search is extremely wonky #7

krzysz00 opened this issue Oct 14, 2019 · 0 comments

Comments

@krzysz00
Copy link
Collaborator

The first issue is that pg_search has rather unsophisticated query processing (or made theirs less sophisticated at some point), which is defined here . This basically turns phrases into AND queries and doesn't support things like turning "quoted phrases" into Postgres's <-> (is next to) query operator.

pg_search is kinda-sorta-maintained (going off of issues and pull requests), so what I'm thinking we might want to do is to either fork or monkey-patch it and replace the tsquery function with something more sophisticated that understands "exact phrases" and puts in &s only when there's not an | or some other symbol in there.

We also have the question of whether to sort search results by date any more than we already do.

In any case, this is here so my research doesn't get lost and we remember to get back to this eventually.

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