Re: Uncomplete date expressions

2011-11-01 Thread Chris Hostetter
: But Solr is (intentionally) stupid about dates, and : requires the (almost) full date format. There are I'm not sure how i feel about "intentionally stupid" ... but the underlying sentiment is correct: Solr requires clients to be *VERY* explicit about dates, because that way the client is in

Re: Uncomplete date expressions

2011-10-31 Thread Erick Erickson
Well, if Solr understood partial dates, how would you then know whether the original was partial or not? It would all look the same when you pulled it out... But Solr is (intentionally) stupid about dates, and requires the (almost) full date format. There are a few zeros you can leave off, but not

Re: Uncomplete date expressions

2011-10-29 Thread Erik Fäßler
Hello François, thank you for your quick reply. I thought about just storing which information I am lacking and this would be a possibility of course. It just seemed a bit like quick&dirty to me and I wondered whether Solr really cannot understand dates which only consist of the year. Isn't it

Re: Uncomplete date expressions

2011-10-29 Thread François Schiettecatte
Erik I would complement the date with default values as you suggest and store a boolean flag indicating whether the date was complete or not, or store the original date if it is not complete which would probably be better because the presence of that data would tell you that the original date w

Uncomplete date expressions

2011-10-29 Thread Erik Fäßler
Hi all, I want to index MEDLINE documents which not always contain complete dates of publication. The year is known always. Now the Solr documentation states, dates must have the format "1995-12-31T23:59:59Z" for which month, day and even the time of the day must be known. I could, of course, j