searchkit-signterms
are searchkit
Filters which use the significant_terms
aggregations instead of the terms
aggregation. This component is experimental and its purpose is to collect some ideas on how to implement reusable signterms
components for searchkit
.
nwb build
npm publish
Here the first aggregation on meta.subject
will be a normal terms aggregation and the second meta.text
is a significant_terms
aggregation operating within the scope of the first filter. Internally the second aggregation is implemented using the SignificantTermsBucket
provided by searchkit
.
import { SignTermsFilter } from 'searchkit-signterms'
<SignTermsFilter
id="subjectSignTerms"
title="Stichwörter"
label="SignTerms"
fields={["meta.subject", "meta.text"]}
size={10} />
import { SignRefinementListFilter } from 'searchkit-signterms'
<SignRefinementListFilter
id="title.words"
title="Stichwörter"
field="meta.title"
operator="OR"
size={10} />