summaryrefslogtreecommitdiff
path: root/includes
AgeCommit message (Collapse)AuthorFilesLines
2026-06-03search: always use syllable expansion; fix PHP 8 null arithmeticLester Caine1-6/+4
- Remove broken $plUsePart gate (literal $ in key meant it never fired); syllable expansion now always runs so partial terms like 'TLC' expand to indexed words like 'tlc5917n' - Cast getOne() to int before time() subtraction — PHP 8 rejects int-null arithmetic when syllable row doesn't exist yet Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21Wrap insert_index() in transaction to prevent stuck Firebird locksLester Caine1-9/+15
Uncaught duplicate-key exception during search indexing left Firebird transactions uncommitted, holding locks that blocked subsequent page reads. StartTrans/CompleteTrans/RollbackTrans ensures the transaction is always closed cleanly regardless of INSERT failure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20Fix Index On Submit flag logic and session lock on saveLester Caine2-6/+9
bit_setup_inc.php: flag was previously ignored — refresh_index was always called synchronously on save regardless of setting, and the flag only controlled the background random refresh. Now correctly: - Flag ON: index synchronously on every save (refresh_index) - Flag OFF: background random refresh only, no synchronous indexing refresh_functions.php: add session_write_close() before indexing in refresh_index() so the session lock is released before the per-word INSERT loop, preventing 'not found' on redirect after saving large pages. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20Fix And Terms Together search for Firebird and PHP namespacesLester Caine1-12/+6
- ORDER BY relevancy/hits by name instead of position 9/5; position 9 resolved to lc.data (BLOB) in find_with_and due to extra hash_key column, causing Firebird to error on BLOB sort - Qualify i_count with table alias to avoid ambiguity - Replace string callback 'search_relevance_sort' with closure; string callbacks resolve in global namespace but function is in Bitweaver\Search - Remove now-redundant standalone search_relevance_sort function Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18Restore ability to add information for the search results from liberty objectsLester Caine1-2/+3
blog title initial target
2026-05-14php-cs-fixer tidies to php8.5 standardsLester Caine4-22/+24
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16Add fisheye to the full text search to support the processing of the text ↵V5-php84lsces2-1/+11
layer in pdf's
2026-04-02Missing namespace referenceslsces1-0/+1
2026-02-01Move functions used by liberty to Liberty namespace. This fixes search not ↵lsces3-4/+6
running on save.
2026-02-01Tidy use of stats as a classlsces1-4/+2
2025-08-27Code updated to PHP8.4 and namespacelsces5-0/+688