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 backend support for PostgreSQL [WIP] #2

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Add backend support for PostgreSQL [WIP] #2

wants to merge 3 commits into from

Conversation

amotl
Copy link
Member

@amotl amotl commented Jan 28, 2024

About

Instead of using SQLite like the original package atsphinx-sqlite3fts, this patch explores how it can be made work to use other SQL databases which provide FTS features, like PostgreSQL with corresponding extensions, or CrateDB without further ado.

Details

Because this will not be able to pull off the same trick of embedding the SQLite database into the browser, accessing it through WASM, it will be far behind from a convenience standpoint, because it will also need to accompany a little backend service wrapping the search request.

Because our intention is to use the search-as-you-type UI widget readthedocs-sphinx-search, we will probably make it so that this little middleware service will be compatible, to make it easy to swap this in.

Otherwise, `language_data` renders like `var stopwords = ;`, which is
invalid code.
@amotl amotl force-pushed the postgresql branch 2 times, most recently from 872a273 to 28603bc Compare January 29, 2024 03:55
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.

1 participant