RE: Searching by dates

2018-08-16 Thread Markus Jelsma
project in on-going development since 2010, but not open source, so if you are interested contact us off list. Regards, Markus -Original message- > From:Shawn Heisey > Sent: Thursday 16th August 2018 20:09 > To: solr-user@lucene.apache.org > Subject: Re: Searching by dates

Re: Searching by dates

2018-08-16 Thread Shawn Heisey
On 8/16/2018 9:20 AM, Christopher Schultz wrote: > Hmm. I could have sworn the documentation I read in the past (maybe as > long as 3-4 months ago) indicated that date+timestamp was necessary. > Maybe that was just for the index, while the searches can be partial. DateRangeField was introduced fou

Re: Searching by dates

2018-08-16 Thread Alexandre Rafalovitch
You could have PatternReplace in your field definition either as a CharFilter or a TokenFilter. See: http://www.solr-start.com/info/analyzers/ Regards, Alex. On 16 August 2018 at 11:20, Christopher Schultz wrote: > Shawn, > > On 8/16/18 10:37 AM, Shawn Heisey wrote: >> On 8/16/2018 7:48 AM, C

Re: Searching by dates

2018-08-16 Thread Christopher Schultz
Shawn, On 8/16/18 10:37 AM, Shawn Heisey wrote: > On 8/16/2018 7:48 AM, Christopher Schultz wrote: >> I haven't actually tried this, yes, but from the docs I'm guessing that >> I can't search for a DOB using e.g. 2018-08-16 but instead I need to >> search using 2018-08-16T00:00:00 plus maybe "Z" a

Re: Searching by dates

2018-08-16 Thread Alexandre Rafalovitch
However, you probably will still need to convert your dates into strings as well to match people's search expectation, as the date fields do not store _english_ month names internally. So, you will want to have a secondary field that expands 2018-02-31 into "February 2018" (and "Feb 2018"?) includ

Re: Searching by dates

2018-08-16 Thread Shawn Heisey
On 8/16/2018 7:48 AM, Christopher Schultz wrote: > I haven't actually tried this, yes, but from the docs I'm guessing that > I can't search for a DOB using e.g. 2018-08-16 but instead I need to > search using 2018-08-16T00:00:00 plus maybe "Z" at the end for the TZ. > > No user is ever going to do

Searching by dates

2018-08-16 Thread Christopher Schultz
All, My understanding is that Solr (really Lucene) only handles temporal data using full timestamps (date+time, always UTC). I have a use-case where I'd like to store and search for people by their birth dates, so the timestamp information is not relevant for me. I haven't actually tried this, ye