You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by noamt <te...@gmail.com> on 2010/01/06 18:12:02 UTC
Highlighted excerpt from specific property query
Hi all
I've configured a custom analyzer and enabled the use of an excerpt on a
custom node property.
If I perform a node-level query for a value of the custom property with the
query:
//element(*,myNamespace:myFileType) [jcr:contains(.,'searchTerm')]
I receive the expected results, and each row returns the expected excerpt
and appropriate highlights.
But when I try to execute a property specific query (to utilize the custom
analyzer I've written):
//element(*,myNamespace:myFileType)
[jcr:contains(myNamespace:myCustomProperty,'searchTerm')]
I receive the expected results, but the excerpt returned from each row
contains the complete value of the property, and no highlights at all.
How can I receive highlighted excerpts from a specific property search?
Thanks in advance
Noam
--
View this message in context: http://n4.nabble.com/Highlighted-excerpt-from-specific-property-query-tp1008207p1008207.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Highlighted excerpt from specific property query
Posted by noamt <te...@gmail.com>.
Thanks
Alexander Klimetschek wrote:
>
> On Tue, Jan 12, 2010 at 16:15, noamt <te...@gmail.com> wrote:
>> Thanks for the response, but I've failed to find any info in the link
>> you've
>> provided (and the web, in general) about creating custom providers.
>>
>> Did I miss anything?
>
> The actual interface to implement was missing on that wiki page, it
> was only mentioned on the search page [1]. I updated [2] with a link
> to the javadoc. Also have a look at the standard DefaultXMLExcerpt
> class in Jackrabbit's sources for an example.
>
> [1] http://wiki.apache.org/jackrabbit/Search
> [2] http://wiki.apache.org/jackrabbit/ExcerptProvider
>
> Regards,
> Alex
>
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
>
>
--
View this message in context: http://n4.nabble.com/Highlighted-excerpt-from-specific-property-query-tp1008207p1012795.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Highlighted excerpt from specific property query
Posted by Alexander Klimetschek <ak...@day.com>.
On Tue, Jan 12, 2010 at 16:15, noamt <te...@gmail.com> wrote:
> Thanks for the response, but I've failed to find any info in the link you've
> provided (and the web, in general) about creating custom providers.
>
> Did I miss anything?
The actual interface to implement was missing on that wiki page, it
was only mentioned on the search page [1]. I updated [2] with a link
to the javadoc. Also have a look at the standard DefaultXMLExcerpt
class in Jackrabbit's sources for an example.
[1] http://wiki.apache.org/jackrabbit/Search
[2] http://wiki.apache.org/jackrabbit/ExcerptProvider
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetschek@day.com
Re: Highlighted excerpt from specific property query
Posted by noamt <te...@gmail.com>.
Hi
Thanks for the response, but I've failed to find any info in the link you've
provided (and the web, in general) about creating custom providers.
Did I miss anything?
Thanks
Alexander Klimetschek wrote:
>
> On Wed, Jan 6, 2010 at 18:12, noamt <te...@gmail.com> wrote:
>> I receive the expected results, but the excerpt returned from each row
>> contains the complete value of the property, and no highlights at all.
>
> The built-in excerpt provider works on the node level. See
> http://wiki.apache.org/jackrabbit/ExcerptProvider for writing your
> custom provider.
>
> Regards,
> Alex
>
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
>
>
--
View this message in context: http://n4.nabble.com/Highlighted-excerpt-from-specific-property-query-tp1008207p1012172.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Highlighted excerpt from specific property query
Posted by Alexander Klimetschek <ak...@day.com>.
On Wed, Jan 6, 2010 at 18:12, noamt <te...@gmail.com> wrote:
> I receive the expected results, but the excerpt returned from each row
> contains the complete value of the property, and no highlights at all.
The built-in excerpt provider works on the node level. See
http://wiki.apache.org/jackrabbit/ExcerptProvider for writing your
custom provider.
Regards,
Alex
--
Alexander Klimetschek
alexander.klimetschek@day.com