On 3/24/06, chan kang <[EMAIL PROTECTED]> wrote:
> What I want to do is to show the results in
> chronological order. (btw, the index contains the time field)
> One solution I have thought up was:
> 1. index the whole set
> 2. read in all the time field values
> 3. re-index the whole set according to time
>    (heard that the index order is same as insertion order)
> 4. optimize.
>
>
> However, although I think the step 3 would result
> in a sorted index, isn't there a possibility that
> step 4 might ruin all the sortedness?
> - Wouldn't optimizing break the order in which they
>   are indexed?

Index order is retained, so your plan should work fine.

How long is sorting actually taking?  FYI, the first time you sort on
a field will take much longer because a fieldcache entry must be
populated.

-Yonik
http://incubator.apache.org/solr Solr, The Open Source Lucene Search Server

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to