regex #159

 
amby src #1030/0

does apioforum support regex searching

and if not, why not

ubq323 (bureaucrat) src #1032/0

no, but it does support sqlite fts5 query syntax

why not: because evaluating a regex against every single post ever would be unfathomably slow. instead we use sqlite's fts5 (full text search) extension to index posts by words that appear in them (or something, i'm not sure how it works actually).

amby src #1036/0

understandable

kit src #1042/0

simply just do if (post_title == query) { add_to_list (); } smh

ubq323 (bureaucrat) src #1047/0

that would only search post titles and would only search exact matches, which is worse than either of the two methods heretofore mentioned

kit src #1053/0

i was joking

please log in to reply to this thread