search_core/Documentation/source/changelog/20180306-120-facet-configuration.rst
Daniel Siepmann 7cb160e549
TASK: Fix some small errors in changelog
Fix wrong month used in changelog.
Fix typos in headlines of changelog.
Keep same case for features.
2018-04-10 17:17:16 +02:00

1 KiB

Breaking 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.