How to get only year from facet.fields date field in Solr JSON ? Help me if you have solution.
As far as I know you will have to loop through the results and extract the year.
If extracting year from date is regular query to solr then it is preferable to index
year separately.
Hope this helps. In case you find a better solution do let me know.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.