nx_search_inverted.nx
buildroot/runtime/nx_search_inverted.nx
about
dependencies 1 imports · 37 importers
diagram shows first 10 each side; +0 more imports, +27 more importers in the complete lists below.
imports: syscalls.nx
imported by: nx_artifact_store.nxnx_corpus_measure.nxnx_corpus_search.nxnx_crawl_doc.nxnx_diora_index_demo.nxnx_diora_live_reach.nxnx_diora_live_reach_guarded.nxnx_diora_live_serp.nxnx_dms_search.nxnx_docstore_test.nxnx_entity_discover.nxnx_html_to_nishi_page.nxnx_index_migrate_gate.nxnx_inv_bounded_gate.nxnx_live_crawl.nxnx_live_https.nxnx_nishi_page_emit.nxnx_pipeline_walker.nxnx_research_digest.nxnx_search_handler_flow.nxnx_search_inverted_persist.nxnx_search_inverted_test.nxnx_search_neutrality_gate.nxnx_search_onsite_engine.nxnx_search_query_parser.nxnx_search_server.nxnx_search_snippet_extract.nxnx_simhash.nxnx_warc_index.nxnx_wiki_archive_router.nxnx_wiki_https_daemon.nxnx_wiki_https_daemon_mv.nxnx_wiki_index_builder.nxnx_wiki_main.nxnx_wiki_routes.nxnx_wiki_search_wiring.nxnx_wiki_vhost_table.nx
structs
| 161 | struct NxInvIndex |
| 623 | struct NxInvQueryResult |
consts
| 28 | const NX_MAGIC_4294967296: i64 = 4294967296 |
| 29 | const NX_MAGIC_4194304: i64 = 4194304 |
| 33 | const NX_INV_OK: i64 = 1 |
| 34 | const NX_INV_FILE_NOT_FOUND: i64 = 2 |
| 35 | const NX_INV_BAD_ARGS: i64 = 3 |
| 36 | const NX_INV_NO_MATCHES: i64 = 4 |
| 37 | const NX_INV_OUT_OF_VOCAB: i64 = 5 |
| 38 | const NX_INV_BUILD_FAIL: i64 = 6 |
| 52 | const NX_INV_FNV1A_OFFSET_BASIS: i64 = -3750763034362895579 |
| 53 | const NX_INV_FNV1A_PRIME: i64 = 1099511628211 |
| 102 | const NX_INV_VOCAB_CAPACITY: i64 = 131072 // 128 K slots (~50% load at 50K vocab) |
| 103 | const NX_INV_MAX_POSTINGS_PER: i64 = 16384 // cap per token (most tokens have <100) |
| 104 | const NX_INV_MAX_TOTAL_ROWS: i64 = 8388608 // 8 M rows ceiling |
| 105 | const NX_INV_MIN_TOKEN_LEN: i64 = 2 |
| 106 | const NX_INV_MAX_TOKEN_LEN: i64 = 64 |
| 159 | const NX_INV_SLOT_BYTES: i64 = 32 |
| 171 | const NX_INV_INDEX_BYTES: i64 = 56 // 7 fields * 8 bytes |
| 632 | const NX_INV_QUERY_RESULT_BYTES: i64 = 48 |
functions
| 40 | func nx_inv_verdict_name(v: i64) -> *u8 |
| 55 | func nx_inv_hash_bytes_lower(bytes: *u8, n: i64) -> i64 |
| 83 | func nx_inv_is_token_char(c: i64) -> i64 |
| 131 | func nx_bm25_tf(text: *u8, n: i64, term_hash: i64) -> i64 called by 13: nx_crawl_searchnx_crawl_searchmainmainmainmain+7 calls 2: nx_inv_is_token_charnx_inv_hash_bytes_lower |
| 175 | func nx_inv_new(expected_rows: i64) -> *NxInvIndex |
| 202 | func nx_inv_new_sized(cap: i64) -> *NxInvIndex |
| 221 | func nx_inv_new_bounded(cap: i64, post_cap: i64) -> *NxInvIndex |
| 241 | func nx_inv_slot_at(idx: *NxInvIndex, slot_i: i64) -> *u8 |
| 245 | func nx_inv_slot_hash(slot: *u8) -> i64 |
| 250 | func nx_inv_slot_set_hash(slot: *u8, h: i64) called by 1: nx_inv_count_token |
| 255 | func nx_inv_slot_postings_offset(slot: *u8) -> i64 |
| 260 | func nx_inv_slot_set_postings_offset(slot: *u8, off: i64) called by 1: nx_inv_finalize_offsets |
| 265 | func nx_inv_slot_postings_count(slot: *u8) -> i64 |
| 270 | func nx_inv_slot_set_postings_count(slot: *u8, c: i64) called by 1: nx_inv_count_token |
| 275 | func nx_inv_slot_write_cursor(slot: *u8) -> i64 |
| 280 | func nx_inv_slot_set_write_cursor(slot: *u8, c: i64) |
| 286 | func nx_inv_count_token(idx: *NxInvIndex, token_hash: i64) -> i64 |
| 322 | func nx_inv_finalize_offsets(idx: *NxInvIndex) -> i64 |
| 348 | func nx_inv_emit_posting(idx: *NxInvIndex, token_hash: i64, row_id: i64) -> i64 |
| 392 | func nx_inv_add_posting(idx: *NxInvIndex, token_hash: i64, row_id: i64) -> i64 |
| 400 | func nx_inv_lookup_slot(idx: *NxInvIndex, token_hash: i64) -> *u8 called by 7: cm_hascs_hascs_ndocsmig_querybg_hasnx_inv_query_term+1 calls 2: nx_inv_slot_atnx_inv_slot_hash |
| 424 | func nx_inv_index_row( called by 25: mainmainmainmainmainmain+19 calls 3: nx_inv_is_token_charnx_inv_hash_bytes_lowernx_inv_add_posting |
| 474 | func nx_inv_emit_row( called by 23: mainmainmainmainmainmain+17 calls 3: nx_inv_is_token_charnx_inv_hash_bytes_lowernx_inv_emit_posting |
| 523 | func nx_inv_build_from_jsonl(jsonl_path: *u8) -> *NxInvIndex |
| 634 | func nx_inv_query_term( |