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

Support for Full Text Search Features #174

Open
rupurt opened this issue Oct 26, 2022 · 2 comments
Open

Support for Full Text Search Features #174

rupurt opened this issue Oct 26, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@rupurt
Copy link

rupurt commented Oct 26, 2022

Howdy,

Absolutely love the idea in so many ways!!

Do you have any plans to support any of the full text search features from Postgres?

@mildbyte
Copy link
Contributor

mildbyte commented Oct 27, 2022

Maybe, though this might better be suited as an upstream DataFusion question/feature suggestion. Note that because DataFusion is a column-oriented execution engine, it won't really be able to support PostgreSQL's indexing features, so you won't get any speed improvement over using WHERE some_text LIKE '%my_search_string%' (it'll have to inspect all values in a table partition anyway).

But there is some neat functionality like the tsvector type and the @@ operator. We don't have plans to build that yet: in terms of custom types and new operators, we're currently starting with #137 to see how easy it is to get something similar to PG's JSON support working in DataFusion (which might require being able to define custom Arrow types and table-valued functions). After that's built, it should then be possible to build tsvector on top of JSON support and write some UDFs in WASM to get FTS working.

@rupurt
Copy link
Author

rupurt commented Oct 27, 2022

tsvector + pg_trgm are exactly the types of things I would like to use for smallish search indexes at the edge. Many of these are slow changing so would be a great fit for caching.

@mildbyte mildbyte added the enhancement New feature or request label Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants