> Can you guys tell me more about "warm up queries" strategies ? > > I know that once you made one query, the second time is super quick because > it's in cache - but how can you do warm up queries when you don't know what > users are going to search ?
It's not so much that the hits or queries are cached (they aren't) but that some lucene internal structures are loaded from disk. And if you are sorting, the field cache is also loaded. So it usually doesn't matter exactly what queries you use. One strategy is to keep a list of the last n queries and execute them. Another is just to pick some arbitrary queries that you know are representative of real queries e.g. if people search on title and sort on date then use a query that does that. -- Ian. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org