lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charlie Jackson" <>
Subject RE: Rounding dates on sort and filter
Date Tue, 19 Jan 2010 20:50:53 GMT
Good point. So it doesn't sound like there's a way to do this without
adding a new field or reindexing. Thanks anyway. 

- Charlie

-----Original Message-----
From: Otis Gospodnetic [] 
Sent: Tuesday, January 19, 2010 2:04 PM
Subject: Re: Rounding dates on sort and filter


Query-time terms/tokens need to match what's in your index, and my guess
is that if you just altered query-time date field analysis, you'd get a
mismatch.  Easy enough to check through Solr Admin Analysis page.

Sematext -- -- Solr - Lucene - Nutch

----- Original Message ----
> From: Charlie Jackson <>
> To:
> Sent: Tue, January 19, 2010 1:20:02 PM
> Subject: Rounding dates on sort and filter
> I've got a legacy date field that I'd like to round for sorting and
> filtering. Right now, the index is large enough that sorting or
> filtering on a date field takes 10-20 seconds (unless it's cached). I
> know this is because the date field's precision is down to the
> millisecond, and I don't really need that level of precision for most
> my searches. So, is it possible to round my field at query time
> having to reindex the field or add a second one? 
> I already tried the function sorting in 1.5-dev, but my field isn't a
> TrieDate field so I can't use the ms() function (which seems to allow
> date math unlike the other functions). 
> Thanks,
> Charlie

View raw message