I agree with Erick,
converting dates into String is really a bad idea.

This "custom component" makes me curious, I assume you have :
Front End - Search-api -Solr or something similar.
If you want the front end to send the partial date, then the search-api can
handle the conversion.
If you want the front end to do the conversion, do at that time.
I can't see any problem in that, part if you are manually using Solr
without any middle layer ( which would surprise me) .
Can you give us more explanation  ?
This "custom component" sounds me wrong, how are you currently using solr ?

Cheers

On 28 January 2016 at 06:09, Jeyaprakash Singarayar <jpsingara...@gmail.com>
wrote:

> Hi Sriram,
>
> Add the tag 'propertyWriter' directly under the 'dataConfig' tag. The
> property "last_index_time" is converted to text and stored in the
> properties file and is available for the next import as the variable
> '${dih.last_index_time}' . This tag gives control over how this properties
> file is written.
>
> Its available in all 4.X versions.
>
> Hope it helps.
>
> On Thu, Jan 28, 2016 at 1:41 AM, vsriram30 <vsrira...@gmail.com> wrote:
>
> > I am actually using one such component to take in the partial dates like
> > 2015-10 and create full UTC dates out of it and query using that. But
> since
> > I was checking on that wiki about partial date search and since I
> couldn't
> > find that it is available only from 5.x, I was curious to know if by some
> > way I can make it work in 4.6.1 without need of my custom component.
> >
> > Thanks,
> > Sriram
> >
> >
> >
> > --
> > View this message in context:
> >
> http://lucene.472066.n3.nabble.com/Solr-partial-date-range-search-tp4253226p4253649.html
> > Sent from the Solr - User mailing list archive at Nabble.com.
> >
>



-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Reply via email to