On Mon, Jun 15, 2009 at 4:39 PM, Michael Ludwig <m...@as-guides.com> wrote:
> I want to retrieve documents (TV programs) by a particular date and > decided to convert the date to an integer, so I have: > > * 20090615 > * 20090616 > * 20090617 etc. > > I lose all date logic (timezones) for that date field, but it works for > this particular use case, as the date is merely a tag, and not a real > date I need to perform more logic on than an integer allows. > > Also, an integer looks about as efficient as it gets, so I thought it > preferable to a date for this use case. YMMV. > > I think if you truncate dates to incomplete dates, you effectively also > lose all the date logic. You may still apply it, but what would you take > the result to mean? You can't regain precision you've decided to drop. > Note that with Trie search coming in (see example schema.xml in the nightly builds), this rounding may not be necessary any more. -- Regards, Shalin Shekhar Mangar.