Skip to content

Fuzzy search #13

@onkoe

Description

@onkoe

I'd like for the literal search functionality (CollectionModifier::Literal) to use fuzzy searching if at all possible.

There's an extension to do that within the sqlean SQLite extension collection located here. However, SQLx doesn't compile extensions for you.

So, we need to add libsqlite3-sys without default features. Then, in our build.rs build script, we should compile SQLite and the extension, then emit [env] SQLITE3_STATIC=1 and [env] SQLITE3_LIB_DIR="<target dir...>/sqlite3/build/ or whatever.

If it's possible, we may be able to dynamically patch SQLite with the extension (at build time), then happily ask libsqlite3-sys to build it for us with [env] SQLITE3_INCLUDE_DIR. I'd prefer this, as building stuff manually is always some dirty business. :p

A fork might work too, as SQLite is well-known for stability, and in general, there's really not much security concern within this project. I

Here are some references:

Metadata

Metadata

Assignees

No one assigned

    Labels

    dbinvolves the database, tables, or reprfilteringsearch/sort functionality
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions