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

add q parameter for free-text search #295

Merged
merged 2 commits into from
Aug 19, 2024
Merged

add q parameter for free-text search #295

merged 2 commits into from
Aug 19, 2024

Conversation

hrodmn
Copy link
Collaborator

@hrodmn hrodmn commented Aug 13, 2024

This adds the q parameter for free-text search. It will be pretty slow for item-level search because it has to compute the tsvectors on-the-fly, but it works great for collection-level search where the number of records should be limited.

Resolves #293 (for collection-level search at least)

@hrodmn hrodmn requested a review from bitner August 13, 2024 21:18
CHANGELOG.md Outdated Show resolved Hide resolved
@hrodmn
Copy link
Collaborator Author

hrodmn commented Aug 14, 2024

@bitner I had to beef up q_to_tsquery a bit to avoid replacing terms inside of quoted statements. It's all case-insensitive now and passing a more robust set of tests!

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.

Support for the STAC API free-text extension
2 participants