meilisearch/Configuration/TypoScript/Examples/Facets/NumericRange/setup.typoscript

26 lines
741 B
Plaintext
Raw Normal View History

2021-04-17 00:26:33 +02:00
# Enable a numericRange facet on the pidField
plugin.tx_meilisearch.search.faceting = 1
plugin.tx_meilisearch.search.faceting.facets {
pidRangeRange {
field = pid
label = Pid Range
type = numericRange
numericRange {
start = 0
end = 100
gap = 1
}
}
}
# Load js files
page.includeJSFooterlibs {
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
solr-ui = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery-ui.min.js
solr-numericrange = EXT:meilisearch/Resources/Public/JavaScript/facet_numericrange_controller.js
}
page.includeCSS {
solr-ui = EXT:meilisearch/Resources/Css/JQueryUi/jquery-ui.custom.css
}