Skip to content

collection.xconf template references AnalyzingQueryParser removed in Lucene 10 #304

@joewiz

Description

@joewiz

[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

  1. Generate any app from a Jinks blueprint on eXist-db 7.0 (feature/websocket-eval or similar build with Lucene 10)
  2. Open the browse page — "Found 0 items"
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions