code wiki / _hdl_build / nx_bulk_index.nx
nx_bulk_index.nx
buildroot/runtime/_hdl_build/nx_bulk_index.nx
about
nx_bulk_index.nx -- TARGETED bulk indexer (operator 2026-07-06: "we should have thousands of results ...
index the individual works, not 3 search pages"). Reads a URL list (one per line), fetches each over the
best-effort stack, PER-HOST paces (nx_crawl_pace -- don't get banned), extracts (nx_html_to_text +
nx_struct_extract title/desc), and indexes each into dp-web-pub- with ONE shard handle + batched commits.
This is nx_url_index's core looped -- the efficient path to index a performer's whole catalog.
usage: nx_bulk_index <url-list-file>
license_tier: ORIGINAL
dependencies 7 imports · 0 importers
imports: nx_corpus_ingest.nxnx_struct_extract.nxnx_js_eval.nxnx_crawl_pace.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_fetch_follow.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 15 | const K_MAGIC_4194304: i64 = 4194304 |
| 16 | const K_MAGIC_4096: i64 = 4096 |
| 17 | const K_MAGIC_1048576: i64 = 1048576 |
| 18 | const K_MAGIC_8192: i64 = 8192 |
| 19 | const K_MAGIC_1024: i64 = 1024 |
| 20 | const K_MAGIC_2048: i64 = 2048 |
| 21 | const K_MAGIC_4095: i64 = 4095 |
| 22 | const K_MAGIC_8190: i64 = 8190 |
functions
| 24 | func bw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } called by 1: main |
| 25 | func bn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(1,"-" as *u8,1); m=0-m } let t: *u8=sys_mmap(24); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } let o: *u8=sys_mmap(24); var q: i64=k-1; var x: i64=0; while q>=0 { o[x]=t[q]; x=x+1; q=q-1 } sys_write(1,o,x); return 0 } called by 1: main |
| 26 | func bslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: main |
| 27 | func bhas(hay: *u8, hn: i64, ndl: *u8) -> i64 { var nl: i64=0; while ndl[nl]!=(0 as u8){nl=nl+1} var i: i64=0; while i+nl<=hn { var m: i64=1; var j: i64=0; while j<nl { if hay[i+j]!=ndl[j] { m=0; j=nl } else { j=j+1 } } if m==1 { return 1 } i=i+1 } return 0 } called by 1: main |
| 28 | func bhost(url: *u8, out: *u8) -> i64 called by 1: main |
| 37 | func main(argc: i64, argv: *i64) -> i64 |