lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincenzo D'Amore" <v.dam...@gmail.com>
Subject Re: Working with Dates - More DateRangeField Details
Date Mon, 24 Apr 2017 16:03:06 GMT
Thanks for your suggestion :)

On Mon, Apr 24, 2017 at 3:08 PM, Shawn Heisey <apache@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.damore@gmail.com
skype: free.dev
mobile: +39 349 8513251

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message