[This issue was co-authored with Claude Code. -Joe]
Problem
The collection.tpl.xconf template in the base10 profile includes:
<parser class="org.apache.lucene.queryparser.analyzing.AnalyzingQueryParser"/>
This class was removed in Lucene 9. On eXist-db 7.0 (which uses Lucene 10), this causes the entire Lucene index configuration to fail silently — ft:query() with field queries returns 0 results, and the TEI Publisher browse page shows no documents.
How to reproduce
- Generate any app from a Jinks blueprint on eXist-db 7.0 (feature/websocket-eval or similar build with Lucene 10)
- Open the browse page — "Found 0 items"
- Remove the
<parser> element from the system collection.xconf and reindex — documents appear
Suggested fix
Remove the <parser> element from collection.tpl.xconf, or conditionally include it only when the Lucene version supports it. The AnalyzingQueryParser was used to enable query-time analysis but Lucene 10's ClassicQueryParser handles this by default.
Related
[This issue was co-authored with Claude Code. -Joe]
Problem
The
collection.tpl.xconftemplate in thebase10profile includes:This class was removed in Lucene 9. On eXist-db 7.0 (which uses Lucene 10), this causes the entire Lucene index configuration to fail silently —
ft:query()with field queries returns 0 results, and the TEI Publisher browse page shows no documents.How to reproduce
<parser>element from the systemcollection.xconfand reindex — documents appearSuggested fix
Remove the
<parser>element fromcollection.tpl.xconf, or conditionally include it only when the Lucene version supports it. TheAnalyzingQueryParserwas used to enable query-time analysis but Lucene 10'sClassicQueryParserhandles this by default.Related