Yes, but I was thinking that the relevance function, which depends on the matchinfo/offset functions of fts, won’t work if there is no text to match against.
Do you mean that for this query we cannot use FTS?
No text to fts search here, so how do we sort the results? Another example
created:2015. This would return all notes created from 2015 onwards but I don’t think giving the result without any ability to control its order would be helpful. The user is interested in the time aspect of the notes, so doesn’t it make sense to allow sorting by asc/desc time?
The query should be used a signal that affects the relevance algorithm. If the query is “created:2015” indeed it means that the note creation date is important and should affect relevance more. In that case, maybe that would be the only thing that affects relevance and the results would be sorted by creation date.