I am using Sitecore 9.0.1 with SXA components. I have checked the SXA out of the box components for search functionality. For date fields, we have date range by which we can filter items in a specific date range value. There is a filter dropdown also, which works only n integer facets.
Can we have a date field in a template and then filter the items by year?
Example, we have below date fields in item values:
- 12th January 2016
- 18th May 2015
- 31st March 2015
In search field dropdown, we will have 2 options as 2016 and 2015. On select of 2015, it will display the 2nd and 3rd item.
I am pretty new to Sitecore and SXA, any links or references will be much helpful.
Thanks in advance :)