Skip to content

Local search comparison#21

Open
plural wants to merge 3 commits into
Null-Signal-Games:mainfrom
plural:local-search-comparison
Open

Local search comparison#21
plural wants to merge 3 commits into
Null-Signal-Games:mainfrom
plural:local-search-comparison

Conversation

@plural

@plural plural commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Add a tool to compare local SQLite search results with the API server. This will help us debug local search and ensure that the server and browser versions have identical behavior.

Run this with npm run compare-search -- --limit 10000 --parallel 50 and adjust flags as needed.

Example output (final bit):

Comparison complete: 5768 passed, 287 failed, 816 both failed.
API caching stats: 6055 total requests, 5997 cache hits, 58 cache misses (issued).

=== GROUPED PARSE/BUILD FAILURES SUMMARY ===
- Unknown keyword: 570 occurrence(s)
- Syntax/Parsing error (Ohm parse failed): 461 occurrence(s)
- Invalid value for date field: 9 occurrence(s)
- Invalid string operator: 7 occurrence(s)
- Invalid value for integer field: 4 occurrence(s)
- Invalid value for boolean field: 4 occurrence(s)
- Invalid format operator: 1 occurrence(s)
============================================

Results successfully written to: /Users/jason/src/netrunnerdb/nrdbv2/scripts/search-comparison-results.json

@plural plural requested a review from migueldlr June 9, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant