Re: Partial date searches

2012-09-16 Thread Jack Krupansky
eptember 16, 2012 7:59 AM To: 'solr-user@lucene.apache.org' Subject: RE: Partial date searches Thank you for your great suggestion. That worked! A follow-up: We're using this to do partial date searches on the copyField text field, providing month "08" and day "01":

RE: Partial date searches

2012-09-16 Thread Alex Cougarman
efficient way to do this? Thanks. Warm regards, Alex -Original Message- From: Jack Krupansky [mailto:j...@basetechnology.com] Sent: 13 September 2012 4:47 PM To: solr-user@lucene.apache.org Subject: Re: Partial date searches Wildcard patterns work on dates if they are "string&quo

Re: Partial date searches

2012-09-13 Thread Jack Krupansky
Wildcard patterns work on dates if they are "string" fields. If your dates are "trie" dates (the default "date" field type now), you would need to do a copyField to a string field to do the wildcard match. Examples: -05-12* 2010-??-12* -- Jack Krupansky -Original Message-

Re: Partial date searches

2012-09-13 Thread Alexandre Rafalovitch
Well, you could always index the year/month/day separately. The query might be a bit slower and more cumbersome, but it is doable. And for indexing, you can probably use index-time transformers/components to split the date into the parts behind the scenes. The usual other option is to use Date Mat