Re: variaton on boosting recent documents gives exception

2015-02-13 Thread Michael Lackhoff
Am 13.02.2015 um 11:18 schrieb Gonzalo Rodriguez: > You can always change the type of your sortyear field to an int, or create an > int version of it and use copyField to populate it. But that would require me to reindex. Would be nice to have some type conversion available within a function que

RE: variaton on boosting recent documents gives exception

2015-02-13 Thread Gonzalo Rodriguez
Hello Michael, You can always change the type of your sortyear field to an int, or create an int version of it and use copyField to populate it. And using NOW/YEAR will round the current date to the start of the year, you can read more about this in the Javadoc: http://lucene.apache.org/solr/4