[opencms-dev] How to manage the "excerpt" of a Solr document
Rüdiger Kurz
r.kurz at alkacon.com
Mon Jan 7 12:00:06 CET 2013
Hi Siegfried,
generally there is no excerpt in Solr by default, the keyword to search
for is: 'highlighting' and therefore it exists a documentation at:
http://wiki.apache.org/solr/HighlightingParameters
Try to use those parameters for generating an excerpt.
There are some dynamic fields called '<locale>_excerpt' stored within
the Solr index of OpenCms. The reason for storing these fields is to
speed up searching for very huge documents: For example, if you have
really huge documents within your Solr index and you get a lot of
results the Solr highlighter slows down the overall search performance.
So only make use of those '<locale>_excerpt' if you are sure that the
highlighter is the reason for slowing down your search.
regards
Rüdiger
Am 04.01.2013 11:07, schrieb Siegfried Ehret:
> Hi,
>
> I have a page store in Solr.
> This page contains an element with a title "My title" and a headline "My headline"
> The excertp is "My TitleMy headline".
>
> Is there a way to set the excerpt builder to add spaces between elements ?
>
> Also, my article isn't stored in the content_en or content_fr.
> How do I force my in-page article content to be stored in the content_<lang> ?
> (article elements are excluded from search, because I only want the page to be in the results).
>
> Thanks.
--
Kind Regards,
Rüdiger.
-------------------
Rüdiger Kurz
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
More information about the opencms-dev
mailing list