-
Notifications
You must be signed in to change notification settings - Fork 176
Description
Is your feature request related to a problem? Please describe.
The PgVectorKeywordRetriever currently only supports the plainto_tsquery function. This means that any keyword inputs are combined via AND. i.e. "Can cats fly?" -> "cats & fly" in the actual search. There is no method using this function to allow for more nuanced keyword searches. (What if I wanted "cats | fly").
Describe the solution you'd like
Would it be possible to add functionality to support the websearch_to_tsquery, and to_tsquery functions?
Describe alternatives you've considered
There doesn't seem to be alternatives without building a custom keyword retrieval and using metadata to store values. I understand there might be reasons why this hasn't been implemented (security and sql injections), but I am hoping that there is a way to avoid those issues while still giving a more developer friendly way to customize the searches directly from a query.