jaguar_orm icon indicating copy to clipboard operation
jaguar_orm copied to clipboard

FTS4 Full Text Search for sqflite (sqlite)

Open vectorlit opened this issue 5 years ago • 0 comments

Both Android and iOS have native support for the FTS4 virtual table module extensions. Currently there is no way in jaguar to enable these.

Documentation on the feature is here for FTS4: https://sqlite.org/fts3.html

In other popular abstracted mobile ORMs, such as Entity Framework for mono/xamarin, this support is generally accompanied with code annotation support for COLLATE NOCASE. Without caseless collation, the FTS MATCH feature is generally not useful.

Documentation on collation methods are here, but specifically pertinent to this request is https://sqlite.org/datatype3.html#collation_sequence_examples

My suggestion is for adding the following for sqflite ORM only:

  1. Add support for table creation statements to allow for the "VIRTUAL [...] USING FTS4" flags
  2. Add support for comparison operator 'MATCH' when FTS4 is enabled on a table.
  3. Annotations support for fields to have COLLATE NOCASE option

vectorlit avatar Mar 20 '19 02:03 vectorlit