Re: sorted search

2005-02-24 Thread Erik Hatcher
Sorting by String uses up lots more RAM than a numeric sort. If you use a numeric (yet lexicographically orderable) date format (e.g. MMDD) you'll see better performance most likely. Erik On Feb 24, 2005, at 1:01 PM, Yura Smolsky wrote: Hello, lucene-user. I have index with many doc

Re: sorted search

2005-02-24 Thread Daniel Naber
On Thursday 24 February 2005 19:01, Yura Smolsky wrote: >       sort.setSort( new SortField[] { new SortField ("modified", > SortField.STRING, true) } ); You should store the date as a number, e.g. "days since 1970" (or weeks if that is precise enough) and then tell the sort that it's an integer