[TYPO3-Solr] Installation
Jigal van Hemert
jigal.van.hemert at typo3.org
Wed Nov 14 16:22:34 CET 2012
Hi,
On 14-11-2012 16:09, Xaver Maierhofer wrote:
> I need a Extension in search and it has 5-10 body fields.
> How can I add multiple bodycontent fields.
> (short job description, job description, region, knowledges)
>
> I can find jobs, but, but only by used fields:
>
> TS:
> plugin.tx_solr.index.queue {
> tx_dmmjobcontrol_job = 1
> tx_dmmjobcontrol_job {
> fields {
> description = employer_description
> title = job_title
>
> content = SOLR_CONTENT
> content {
> field = job_description
> }
If you want to search in multiple fields you can use the fact that
SOLR_CONTENT supports stdWrap:
content = SOLR_CONTENT
content {
cObject = COA
cObject {
10 = TEXT
10 {
field = job_description
# use noTrimWrap to add a space after the text
noTrimWrap = || |
}
20 = TEXT
20 {
field = job_short_description
noTrimWrap = || |
}
}
}
--
Jigal van Hemert
TYPO3 Core Team member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-project-solr
mailing list