Skip to content

pg_textsearch#872

Closed
tdrz wants to merge 6 commits intomainfrom
tdrz/fe-pg_textsearch
Closed

pg_textsearch#872
tdrz wants to merge 6 commits intomainfrom
tdrz/fe-pg_textsearch

Conversation

@tdrz
Copy link
Collaborator

@tdrz tdrz commented Jan 11, 2026

@tdrz tdrz self-assigned this Jan 11, 2026
@tdrz tdrz changed the title frontend impl of pg_searchtext pg_textsearch Jan 23, 2026
@contrebande-labs
Copy link

Hi @tdrz I'm considering continuing your work here on this. Can you comment on the state of the project, the challenges, etc? In short can you provide pointers as to what is needed to make pg_textsearch work for pglite ? Thanks!

@contrebande-labs
Copy link

Oh and also, could you please explain the choice for pg_textsearch against these 2 other BM25 implementations:

https://github.com/paradedb/paradedb/tree/main/pg_search
https://github.com/Casecommons/pg_search

Thanks!

@tdrz
Copy link
Collaborator Author

tdrz commented Feb 24, 2026

@contrebande-labs

could you please explain the choice for pg_textsearch against these 2 other BM25 implementations:

pg_textsearch is in C, until now we only have support for C extensions (and plpgsql). See here. Would be great to support Rust extensions though.

https://github.com/paradedb/paradedb/tree/main/pg_search https://github.com/Casecommons/pg_search

First one seems Ruby, second one Rust.

Can you comment on the state of the project, the challenges, etc? In short can you provide pointers as to what is needed to make pg_textsearch work for pglite ?

I did the minimal effort as described in our docs on adding Postgres extensions. Sorry, can't comment more as I didn't invest enough effort on it. I was hoping it will "just work"™.

@contrebande-labs
Copy link

Thanks for your quick reply! Will reproduce, investigate and circle back here.

@tdrz
Copy link
Collaborator Author

tdrz commented Feb 27, 2026

@contrebande-labs The tests themselves might not be correct.

I've just upgraded to pg_searchtext v0.5.1.

@tdrz
Copy link
Collaborator Author

tdrz commented Feb 27, 2026

Ideally we would use the extension's own tests, probably the basic ones are enough for us.

@contrebande-labs
Copy link

Hi. @tdrz! I'm currently having issues with my pglite setup in my app. I need to fix these before I add pg_textsearch into the mix. To be clear, I want to implement an hybrid BM25 lexical + dense semantic retriever embedding vector search in the browser with the WASM ONNXRuntime for inference. Once I have the other parts ready, I'll start integrating pg_textsearch. I'll keep you posted.

@contrebande-labs
Copy link

Hi! You seem to be on a roll. I'm facing some kind of race condition with PGlite that prevents me from moving forward. Still working on it.

@tdrz
Copy link
Collaborator Author

tdrz commented Mar 11, 2026

Moved to #913

@tdrz tdrz closed this Mar 11, 2026
@tdrz tdrz deleted the tdrz/fe-pg_textsearch branch March 11, 2026 11:50
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.

2 participants