[TYPO3-english] EXT:solr – Use categories as hierarchical facets

Jigal van Hemert jigal.van.hemert at typo3.org
Mon Aug 10 19:15:39 CEST 2015


Hi,

On 10/08/2015 14:59, Bert Hiddink [BENDOO e-work solutions] wrote:
> I try to implement your snippet posted under
> http://blog.steffen-ritter.net/2014/04/extsolr-use-categories-as-hierarchical-facets/.
>
>
> config.index_enable = 1
>
> plugin.tx_solr {
>      solr {
>        scheme = http
>        host = abc:12345 at mysolrserver.org
>        port = 8080
>        path = /solr/core_es/
>      }
>      enableDebugMode = 1
>      suggest = 1
>      search.elevation = 1
>
>      index {
>
>       fieldProcessingInstructions {
>         category_stringM = categoryUidToHierarchy
>       }
>
>       queue {
>        MYTYPE.fields {

The idea was to replace "MYTYPE" with the name of the queue definition 
you want to add the categories to. In your case it would be "Bdl".

Alternatively you could add the field definition to the Bdl queue 
definition below.

>           category_stringM = SOLR_RELATION
>           category_stringM {
>             localField = categories
>             foreignLabelField = uid
>             multiValue = 1
>           }
>        }


-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list