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

26 lines
769 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 {
2021-04-17 21:20:54 +02:00
meilisearch-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
meilisearch-ui = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery-ui.min.js
meilisearch-numericrange = EXT:meilisearch/Resources/Public/JavaScript/facet_numericrange_controller.js
2021-04-17 00:26:33 +02:00
}
page.includeCSS {
2021-04-17 21:20:54 +02:00
meilisearch-ui = EXT:meilisearch/Resources/Css/JQueryUi/jquery-ui.custom.css
2021-04-17 00:26:33 +02:00
}