Re: Date number to text
The "parse date" update processor can be used to parse dates in a number of formats (configurable) and convert to a Java date value: http://lucene.apache.org/solr/4_8_1/solr-core/org/apache/solr/update/processor/ParseDateFieldUpdateProcessorFactory.html You could copy the field to another field to keep it as text. You can also use your own update processor to convert to some other text format. See the stateless script update processor to write a simple JavaScript script. -- Jack Krupansky -Original Message- From: O. Klein Sent: Friday, June 6, 2014 4:32 AM To: solr-user@lucene.apache.org Subject: Date number to text Is there a way to tokenize 12-6-2014 as 12 june 2014 and the other way around as well? Making it possible for people to search on text and numbers for dates? -- View this message in context: http://lucene.472066.n3.nabble.com/Date-number-to-text-tp4140323.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Date number to text
On 6/6/2014 2:32 AM, O. Klein wrote: > Is there a way to tokenize 12-6-2014 as 12 june 2014 and the other way around > as well? > > Making it possible for people to search on text and numbers for dates? Dates in Solr (if you use an actual date field, and not a text field) follow strict interpretation of ISO 8601. Here is an example of a date/time in this format: 2014-06-06T03:07:29Z Solr only displays and accepts time in UTC. Although the ISO standard does have an additional form that includes the timezone offset, this extension won't work with Solr. If you want human readable dates as output or input, your code must convert them to/from the format that Solr expects. Thanks, Shawn
Date number to text
Is there a way to tokenize 12-6-2014 as 12 june 2014 and the other way around as well? Making it possible for people to search on text and numbers for dates? -- View this message in context: http://lucene.472066.n3.nabble.com/Date-number-to-text-tp4140323.html Sent from the Solr - User mailing list archive at Nabble.com.