• ddfilelister: use bool_search() for description searches (boolean sear

    From Rob Swindell@VERT to GitLab issue in main/sbbs on Tue Nov 24 11:43:30 2026
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1422
    2026-11-24 11:43:30 -0800

    ## Summary

    Synchronet's file description search now takes a **boolean search expression** (v3.22 development), and JavaScript can now evaluate one with the new global function `bool_search()` (678ac2ea59, lone-27-laws, 2026-11-14). DD File Lister still matches the search text as one plain substring, so a boolean search typed at the stock prompt finds nothing when DD File Lister is the List Files module.

    ## What happens now

    The built-in file search (`scandirs()`/`scanalldirs()` with `FL_FIND`) prompts with `SearchStringPrompt` ("Text to search for (?=help)"). Typing `?` shows `text/menu/textsrch.msg`, which describes the syntax: `AND`/`&`, `OR`/`|`, `NOT`/`!`, parentheses, and `"quoted"` whole-word terms. An expression that doesn't parse is rejected with `InvalidSearchExpression`. The accepted expression (uppercased) is then passed to the List Files module as its last arguments.

    `ddfilelister.js` joins those arguments into `gDescKeyword`, and `searchDirWithDescUpper()` checks whether the uppercased short or extended description contains that whole string. So:

    - `NOFX AND PUNK` searches for the literal text "NOFX AND PUNK"
    - `NOFX | RANCID` searches for "NOFX | RANCID"
    - `"NOFX"` (whole word) arrives without its quotes (the module command line strips a leading `"`) and is a plain substring search

    DD File Lister's own description search prompt (when run with `-MODE=search_description`) also uses `SearchStringPrompt`, which now offers `?=help`: typing `?` there searches for a literal "?".

    ## Suggestion

    When `bool_search()` exists (Synchronet v3.22 builds from 2026-11-14 on), use it in place of the substring test, falling back to the current behavior on older builds:

    ```js
    if (typeof bool_search === "function") {
    // throws on an invalid expression (the built-in lister shows InvalidSearchExpression)
    fileIsMatch = bool_search(expression, f.name, f.desc || "", f.extdesc || ""
    , f.tags || "", f.author || "", f.author_org || "");
    } else {
    // current uppercase substring match of desc/extdesc
    }
    ```

    - `bool_search(expression [,text] [,...])` returns true when the expression matches; a term matches if it's found in any of the text arguments (case-insensitive substring; a quoted term as whole words).
    - The fields above are the ones the stock `listfiles.js` searches (filename, short and extended description, tags, author, author's group).
    - Validating the expression once up front (`bool_search(expression, "")` in a `try`, as `listfiles.js` does) lets the lister report a bad expression once instead of per file.
    - For the module's own prompt, `?` could show `bbs.menu("textsrch")` and prompt again, as the built-in prompt does.

    - *Authored by Claude (Claude Code), on behalf of @rswindell*

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net