On 4/24/2017 3:24 AM, Vincenzo D'Amore wrote: > https://cwiki.apache.org/confluence/display/solr/Working+with+Dates#WorkingwithDates-MoreDateRangeFieldDetails > > And I found this filter query pretty interesting for me, so I was trying to > use it with a TrieDateField > > fq={!field f=Data_Ingresso op=Contains}[2013 TO 2018] > > <fieldType name="date" class="solr.TrieDateField" sortMissingLast="true" > omitNorms="true" /> > <field name="Data_Ingresso" type="date" indexed="true" stored="true" > multiValued="false" /> > > But trying the example I get this error: > > Invalid Date String:'[2013 TO 2018]'
This kind of range works with DateRangeField, it does *not* work with TrieDateField. You're going to have to completely reindex after you change the class on your fieldType and reload the collection or core. https://wiki.apache.org/solr/HowToReindex Thanks, Shawn