On Fri, Nov 7, 2008 at 1:27 AM, Matt Kent <[EMAIL PROTECTED]> wrote:

> I'm using the all query *:* with a few filter queries (type:stuff,
> userId:12345, category:3, etc). Without sorting, my query takes about
> 600ms,
> which is fine for me. My target range is 500-1000ms. When I add a sort
> field, my query takes about 53,000ms, which seems ridiculous. The field I'm
> sorting on is a sortable long with omitNorms=true. My index has around 2M
> docs and my configuration is the default.
>
> Is this simply the initial price to pay for using a sort field, or is there
> any way I can improve my cold query time?


You can try to put a sort query in the newSearcher/firstSearcher event so
that the FieldCache for the long field is created and kept ready for
subsequent searches. This should help.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to