Skip to content

Conversation

@eth3lbert
Copy link
Contributor

Previously, I used the wrong function, and the correct function was not available at that time.
The correct function plainto_tsquery_with_search_config() respects to plainto_tsquery(config regconfig, query text ) → tsquery is now available 1, and our test cases cover this part. I think it's time we switched to using it :D

Related:

Footnotes

  1. https://github.com/diesel-rs/diesel_full_text_search/pull/41

@eth3lbert eth3lbert added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Jan 17, 2025
…onfig()` fn

Instead of hand-crafting SQL ourselves, this leverages the defined
`plainto_tsquery_with_search_config()` function from the
`diesel_full_text_search`.
@Turbo87 Turbo87 merged commit cb875d1 into rust-lang:main Jan 17, 2025
8 checks passed
@eth3lbert eth3lbert deleted the diesel-full-text branch January 17, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants