mirror of
https://github.com/djohnlewis/stackdump
synced 2025-12-15 04:13:24 +00:00
30 lines
1.6 KiB
Plaintext
30 lines
1.6 KiB
Plaintext
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
this work for additional information regarding copyright ownership.
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
(the "License"); you may not use this file except in compliance with
|
|
the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<h2 #annTitle("Facets generated by adding &facet.range= to the request")>Range Facets</h2>
|
|
#set($field = $response.response.facet_counts.facet_ranges.price.counts)
|
|
#set($start = $response.response.facet_counts.facet_ranges.price.start)
|
|
#set($end = $response.response.facet_counts.facet_ranges.price.end)
|
|
#set($gap = $response.response.facet_counts.facet_ranges.price.gap)
|
|
#set($before = $response.response.facet_counts.facet_ranges.price.before)
|
|
#set($after = $response.response.facet_counts.facet_ranges.price.after)
|
|
##TODO: Make this display the "range", not just the lower value
|
|
##TODO: Have a generic way to deal with ranges
|
|
#display_facet_range($field, "Price (in $)", "price", $start, $end, $gap, $before, $after)
|
|
|
|
#set($field = $response.response.facet_counts.facet_ranges.manufacturedate_dt)
|
|
#display_facet_range_date($field, "Manufacture Date", "manufacturedate_dt") |