code wiki / (root) / nx_lib_search.nx

nx_lib_search.nx

buildroot/runtime/nx_lib_search.nx

4170 B114 linesdepth 4pulls 4 transitivereach 11 importersview sourcekind librarytopic lib
docsdependenciesstructsconstsfunctions

about

nx_lib_search.nx -- sovereign SEARCH over the nishi-library catalog store. Case-insensitive, multi-term AND over work titles, straight from nx_lib_store -- retires SQLite FTS5's function. Returns a JSON array of matching work_hks. No python, no sqlite, no 3rd-party. (Perf-exceed = persist an inverted index via nx_search_inverted_persist; this rung is functional parity, gated.) license_tier: ORIGINAL | genealogy_id: nishi_library_sovereign_search_2026_06_30

dependencies 1 imports · 4 importers

nx_lib_store.nx nx_lib_search.nx nx_fetchprobec.nx nx_lib_page.nx nx_lib_search_test.nx nx_libdata.nx

imports: nx_lib_store.nx

imported by: nx_fetchprobec.nxnx_lib_page.nxnx_lib_search_test.nxnx_libdata.nx

structs

none

consts

none

functions

9func lsr_lc(c: i64) -> i64
15func lsr_ci_has(hay: *u8, hayn: i64, needle: *u8, nn: i64) -> i64
called by 1: lsr_match calls 1: lsr_lc
37func lsr_title_len(rec: *u8, reclen: i64) -> i64
49func lsr_match(rec: *u8, reclen: i64, qlow: *u8, qn: i64) -> i64
72func nx_lib_search_query(query: *u8, qn: i64, out: *u8) -> i64