jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Slashes in wildcard query string do not work
Date Thu, 26 Feb 2009 21:26:57 GMT
Hi,

On Thu, Feb 26, 2009 at 21:47, Alexander Klimetschek <aklimets@day.com> wrote:
> On Thu, Feb 26, 2009 at 8:11 PM, PThiemann
>> Does anyone know if query highlighing is supported with jcr:like?
>
> Yes, I think this is the case.

no, it's not supported. only query terms in a jcr:contains are
considered for highlighting.

> It seems the default excerpt
> highlighting is not able to handle wildcards.

yes, it is, but only from jcr:contains. it does not depend on the
excerpt provider, but on the underlying lucene query being able to
provide terms on Query.extractTerms(Set). The wildcard query does this
by expanding the pattern and collect all matching tokens in the index.
this process is however limited to 1024 tokens. if your pattern
matches more than 1024 distinct tokens in the index, you won't get any
highlighted terms in the excerpt for the wildcard term.

regards
 marcel

Mime
View raw message