jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Fwd: [jira] Created: (JCR-859) rep:excerpt() may return malformed XML
Date Mon, 07 May 2007 10:30:33 GMT
Alexandru Popescu ☀ wrote:
> My next question would
> be: how is the fragment chosen (on what basis is the decission taken
> from where to where is the fragment to be returned - or is it the
> whole property value?).

The current function does not support arguments to influence the fragment size 
or the number of fragments created for an excerpt. the defaults currently are:

- a maximum of 3 fragments in an excerpt
- approximately 150 characters in a fragment

A fragment is chosen based on the number of terms it contains that matched and 
as a second criteria which one occurs first in the text.

regards
  marcel

Mime
View raw message