code wiki / _hdl_build / nx_book_search_lib.nx

nx_book_search_lib.nx

buildroot/runtime/_hdl_build/nx_book_search_lib.nx

5381 B118 linesdepth 4pulls 4 transitivereach 1 importersview sourcekind librarytopic book
docsdependenciesstructsconstsfunctions

about

nx_book_search_lib.nx -- shared SC20 library-search CORE (NO main). Wired into nx_media_server /api/search. Multi-term, case-insensitive, BM25-ranked TOP-N over a newline-delimited index file (idx_book.wsl). Reuses nx_bm25 (bm_idf_micro/bm_sat_milli/bm_token_count/bm_df) + nx_research_extract (re_count). Same proven algorithm as the gated nx_book_search, extended to multi-term + top-N. license_tier: ORIGINAL

dependencies 3 imports · 1 importers

nx_research_extract.nx nx_bm25.nx nx_syscalls.nx nx_book_search_lib.nx nx_media_server.nx

imports: nx_research_extract.nxnx_bm25.nxnx_syscalls.nx

imported by: nx_media_server.nx

structs

none

consts

8const K_MAGIC_300000: i64 = 300000
9const K_MAGIC_1024: i64 = 1024

functions

11func bks_lc(c: i64) -> i64 { if c >= 65 { if c <= 90 { return c + 32 } } return c }
called by 1: bks_search