We have a solution with itembased news articles. These newsarticles each have a specific date.
On a filtering page - based on index - we want to be able to filter newsarticles from at specific daterange. Eg. newsarticles 2014 to 2017.
I have created two parameters (minYear and maxYear). So in the query, it should be articles from equal or after minYear (2014) and before or equal maxYear (2017).
However, this is only the year and not an entire date, as the newsarticles (eg. 08-08-2016).
As far as I now - In the index,it is not possible to somehow convert the date field to be year only?
Or do i have to convert the minYear and maxYear to full dates for the query? Eg. (01-01-2014 to 31-12-2017)
Any suggestions on how I solve this?
/Hans