In a recent project, the extensions solr, news & dce have been used. This blog post describes how relations to dce elements in a news record can be indexed.
As a first requirement, please add the following static TypoScript entries:
- Search - Index queue configuration for news (solr)
- Search - Index queue configuration for news with content elements (solr)
Add indexing userFunc
The extension dce saves its content in XML by using the core features of FlexForms.
To be able to get the content into solr, a userFunc is reqired.
Get dce’s content
By using the FlexFormService of the core, it is fairly simple to convert the xml structure to a useable and readable array.
Using a switch makes it easy to change the used fields per dce type.