dotConnect for SQLite Documentation
In This Topic
    Full-Text Search Support
    In This Topic

    SQLite database supports an advanced functionality of full-text search (FTS) and full-text indexing described comprehensively in the SQLite documentation: SQLite FTS3 and FTS4 Extensions. SQLite full-text search is supported in Entity Framework v4 - v6. It is not supported in Entity Framework Core.

    SQLite Full-text search implementation has its own peculiarities, so entities that you want to use full-text search on must meet the following requirements:

    The SQLiteTextFunctions class located in the Devart.Data.SQLite.Entity.dll assembly is used to form full-text search specific queries in LINQ to Entities. It has the following methods for using SQLite full-text search functionality:

    For example, the following query:

      var firstQuery = ctx.Books
                      .Where(b => SQLiteTextFunctions.Match(b.Fts, "search expression"))
                      .Select(b => new { b.Rowid, b.Name });
    


    [Visual Basic]

    Dim firstQuery = ctx.Books.Where( _
      Function(b) SQLiteTextFunctions.Match(b.Fts, "search expression")). _
        [Select](Function(b) New From { _
          b.Rowid, _
          b.Name _
        })
    

    Will be translated to the following SQL:

    SELECT 
    Extent1."rowid",
    Extent1.Name
    FROM Books AS Extent1
    WHERE Extent1.Books MATCH 'search expression'

    See Also

    Full-Text Search Tutorial