first commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
|
||||
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/QueryGroup/setup.typoscript'
|
@@ -0,0 +1,56 @@
|
||||
# Enable a queryGroup facet on the field "created"
|
||||
|
||||
plugin.tx_meilisearch.search.faceting = 1
|
||||
plugin.tx_meilisearch.search.faceting.facets {
|
||||
age {
|
||||
label = Age
|
||||
field = created
|
||||
|
||||
type = queryGroup
|
||||
queryGroup {
|
||||
|
||||
week {
|
||||
query = [NOW/DAY-7DAYS TO *]
|
||||
}
|
||||
|
||||
month {
|
||||
query = [NOW/DAY-1MONTH TO NOW/DAY-7DAYS]
|
||||
}
|
||||
|
||||
halfYear {
|
||||
query = [NOW/DAY-6MONTHS TO NOW/DAY-1MONTH]
|
||||
}
|
||||
|
||||
year {
|
||||
query = [NOW/DAY-1YEAR TO NOW/DAY-6MONTHS]
|
||||
}
|
||||
|
||||
old {
|
||||
query = [* TO NOW/DAY-1YEAR]
|
||||
}
|
||||
}
|
||||
|
||||
renderingInstruction = CASE
|
||||
renderingInstruction {
|
||||
key.field = optionValue
|
||||
|
||||
default = TEXT
|
||||
default.field = optionValue
|
||||
|
||||
week = TEXT
|
||||
week.value = Less than one week
|
||||
|
||||
month = TEXT
|
||||
month.value = 1 week to 1 month :)
|
||||
|
||||
halfYear = TEXT
|
||||
halfYear.value = 1 to 6 months
|
||||
|
||||
year = TEXT
|
||||
year.value = 6 months to 1 year
|
||||
|
||||
old = TEXT
|
||||
old.value = over a year
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user