Please refer to query examples in the blog post
You do not explicitly have to specify this index in the query. It would be applied automatically if you are querying on a property that is indexed.
For example, if you create a value index on
try _db?.createIndex(Index.valueIndex().on( ValueIndexItem.expression(Expression.property("type"))), withName: "TypeIndex")
The index would be applied when you run a
Query of the form where you are querying on the
let searchQuery = Query .select(SelectResult.all()) .from(DataSource.database(db)) .where(Expression.property("type").equalTo("hotel")) .limit(limit)
You would be something similar with FTS Index and corresponding