# 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 {
    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
}

page.includeCSS {
    meilisearch-ui = EXT:meilisearch/Resources/Css/JQueryUi/jquery-ui.custom.css
}
