
Tika Eval H2 Query
Query the tika-eval H2 database directly for counts and joins the canned reports do not...
Install
npx skills add apache/tika --skill tika-eval-h2-query -g -a claude-code -y- Repository
- apache/tika4.1k
- Category
- Documents
- Updated
- 3d ago
- License
- Apache-2.0
- Context cost
- Mediumabout 1,756 tokens
- Runs scripts
- No, instructions only
What it does
Query the tika-eval H2 database directly for counts and joins the canned reports do not compute, connection gotchas, key tables, example queries. Use when the xlsx/summary.md reports are not enough.
Local override: $TIKA_SKILLS_LOCAL/tika-eval-h2-query/LOCAL.md (default ~/.tika-skills),
read after this file, wins on conflict.
Query the tika-eval H2 database directly
tika-eval (Compare / Profile / Report) stores everything in an H2 database, the -d <name> you pass to Compare produces <name>.mv.db. The xlsx/summary.md
reports only surface pre-canned views; for anything else (exact counts, custom
joins, "better vs worse" tallies the reports don't compute) connect to the H2 db
and run SQL.
Connecting (the part that trips people up)
tika-eval creates the db with no username and no password (H2Util calls
DriverManager.getConnection(url) with no creds). So:
- URL:
jdbc:h2:<absolute-path-without-the-.mv.db-suffix> - user / password: empty.
-user sa(H2's old default) fails with "Wrong user name or password", the db wasn't created withsa. - Add
;IFEXISTS=TRUEso a typo opens nothing instead of silently creating a new empty db, and;ACCESS_MODE_DATA=rfor a safe read-only open. - H2 is single-writer: don't query while a
Compare/Profile/Reportrun has the db open (file lock). Query after the run finishes.


