On 3/5/07, Neville B. [email protected] wrote:
comparison to before the close/recreate], I’m guessing because the new index
is being loaded into RAM by my OS and into Ferret as needed.
I’m thinking of “warming up” the OS and Ferret by processing a query or two,
and I’d appreciate any details about the way Ferret loads the index, so that
I can construct a good “warm up” query.
Ferret loads the index for each field when it is searched. So if you
only search one field, only that field’s index will be loaded.
Once each fields index is loaded, ferret should be fully warmed up as
far as simple queries like phrase and boolean go. If you are sorting
search results, then sort indexes will also need to be built. A new
sort index is built for each sorted field depending on sort type (int,
float, string, byte) and sort direction (normal and reverse). So if
you are sorting your search results you will also need to try each
type of sort that you might use to warm up that part of the index.
That’s all I can think of at the moment. One thing I have planned for
the future is adding the ability to autoload all the indexes and to
save sort indexes rather than building them each time you open an