Thanks for your suggestion :)

On Mon, Apr 24, 2017 at 3:08 PM, Shawn Heisey <apa...@elyograg.org> wrote:

> 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
>
>


-- 
Vincenzo D'Amore
email: v.dam...@gmail.com
skype: free.dev
mobile: +39 349 8513251

Reply via email to