Search code examples
lucenexqueryexist-db

Inline tags in kwic:summarize shown as spaces


I'm trying to display some search results using an xquery on an eXist server like this:

kwic:summarize($doc//tei:text, <config width="60"/>

I have defined a lucene index in collection.xconf like this

<lucene>
    <text qname="tei:text">
        <inline qname="tei:ex"/>
    </text>
</lucene>

Now the search can find a text with ex tags such as:

th<ex>et</ex>tæ b<ex>re</ex>ff

But when it is displayed in the kwic search result list it is displayed as:

th et tæ b re ff

It should be displayed as:

thettæ breff

How do I make kwic:summarize not insert these spaces?


Solution

  • I solved it by upgrading the eXist-db 2.1 instance to eXist-db 3.2.