You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
tg messages search --forms also matches other forms of each plain word that occur in the
cache: квартира finds квартиру and квартирой, meeting finds meetings, and еще
finds ещё; a word with a digit (2ms) or a stem of one or two letters (ok) stays as
typed. It works on the index's own words with light Russian and English stemmers, so the
index and older versions are unchanged.
Without the flag search stays exact. A query with FTS5 syntax or --phrase with --forms is INVALID_ARGS; while allowedChats is set, --forms matches words only as typed, since the
forms come from the whole cache. Only visible transcripts of current attachments contribute
word forms. The answer adds forms, the forms searched for (null
without --forms or with allowedChats), and filters.forms. The cache gets the tables message_search_vocab and transcript_search_vocab, the words of the message and transcript
indexes, which tg sql can read. See docs/search.md.
The GitHub Release has NOTICE, the licences of the ported stemmers, next to the binaries,
and brew install neoromantic/tap/tg installs it in the formula's prefix.