search_core/Documentation/source/changelog/20180406-120-facet-configuration.rst
Daniel Siepmann 5d1e7c41bc
!!!|FEATURE: Pass facet configuration to search service
Do not limit integrator in possibilities to configure.

Therefore previously configure facets for a field need to be adjusted to
contain full configuration for elasticsearch. See changelog.

Resolves: #120
2018-03-06 12:05:32 +01:00

1 KiB

Breacking Change 120 "Pass facets configuration to elasticsearch"

In order to allow arbitrary facet configuration, we do not process the facet configuration anymore. Instead integrators are able to configure facets for search service "as is". We just pipe the configuration through.

Therefore the following, which worked before, does not work anymore:

plugin.tx_searchcore.settings.search {
    facets {
        category {
            field = categories
        }
    }
}

Instead you have to provide the full configuration yourself:

plugin.tx_searchcore.settings.search {
    facets {
        category {
            terms {
                field = categories
            }
        }
    }
}

You need to add line 4 and 6, the additional level terms for elasticsearch.

See 120.