[TYPO3-Solr] Excerpt field

Ingo Renner ingo at typo3.org
Mon Mar 5 16:51:06 CET 2012


Am 05.03.12 14:37, schrieb Dmitry Dulepov:

Hi Dmitry,

> Is it possible to index one field as a content field but use another
> field (dynamic, with less content) for making the excerpt in search
> results? I know I can replace one field with another with field
> rendering instructions but I prefer to tell Solr to use my dynamic field
> for excerpt to get all proper ellipses and words in it.

What are you trying to do?

You could enable highlighting, that uses and shortens the content field.
You can also use the teaser field in you template instead of the content 
field. The teaser is field is created from the content field 
automatically and cut off after the first 300 characters.

Alternatively you can of course index a separate field exactly to your 
liking and use that in your template.


best
Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2, Admin Google Summer of Code

TYPO3 - Open Source Enterprise Content Management System
http://typo3.org

Apache Solr for TYPO3 -
Open Source Enterprise Search meets Open Source Enterprise CMS
http://www.typo3-solr.com


More information about the TYPO3-project-solr mailing list