Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6854301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:36:59+00:00 2026-05-27T01:36:59+00:00

When I perform a jackrabbit (version 2.2.9) search and I call get row.getValue(rep:excerpt()) the

  • 0

When I perform a jackrabbit (version 2.2.9) search and I call get row.getValue(“rep:excerpt()”) the returned string is just all the properties (excluding jcr: properties) concatenated. How do I control this? eg. If I have a property called “description” containing “bla foo bla” when I search for “foo” I would like to see rep:excerpt() return part of just the description.

I tried creating an index config (and I deleted my repository between tests) in an attempt to control what properties were indexed, to no avail.

Workspace.xml…

<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
  <param name="path" value="${wsp.home}/index"/>
  <param name="supportHighlighting" value="true"/>
  <param name="excerptProviderClass" value="org.apache.jackrabbit.core.query.lucene.DefaultHTMLExcerpt"/>
  <param name="indexingConfiguration" value="${wsp.home}/indexing_configuration.xml"/>
</SearchIndex>

indexing_configuration.xml

<?xml version="1.0"?>
<!DOCTYPE configuration SYSTEM "http://jackrabbit.apache.org/dtd/indexing-configuration-1.0.dtd">
<configuration xmlns:nt="http://www.jcp.org/jcr/nt/1.0">
  <index-rule nodeType="nt:teneoNode">
<property>description</property>
<property>input</property>
<property>key</property>
<property>comment</property>
  </index-rule>
</configuration>

Thanks.

Ted.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:36:59+00:00Added an answer on May 27, 2026 at 1:36 am

    You can configure the ExcerptProvider (Javadoc) implementation which is responsible for the rep:excerpt() functionality in the SearchIndex element of you workspace.xml file:

     <param name="excerptProviderClass" value="org.apache.jackrabbit.core.query.lucene.DefaultHTMLExcerpt"/>
    

    You might need to plugin in your own implementation for you specific needs.

    There is also some – unfortunately rather old – information on the Jackrabbit Wiki.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In order to perform a case-sensitive search/replace on a table in a SQL Server
Both perform the same operation that is MSDN Singleton: Single Call objects service one
I'm trying to perform a somewhat complex select from 3 tables, all joined by
I'm able to perform a search over the Facebook API and I'm aware that
I perform a query on a table Installation to get a list of Ids
I want to perform an operation on a array returned from an ActiveRecord query.
We perform updates of large text files by writing new records to a temp
I'm trying to perform a LINQ query on a DataTable object and bizarrely I
How do I perform an IF...THEN in an SQL SELECT statement? For example: SELECT
I'm trying to perform a SQL query through a linked SSAS server. The initial

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.