Toke

On 2014/06/23, 2:08 PM, Toke Eskildsen wrote:
On Mon, 2014-06-23 at 13:53 +0200, Jamie wrote:
if (startIdx==0) {
    topDocs =
indexSearcher.search(query,queryFilter,searchResult.getPageSize(), sort);
} else {
    topDocs = indexSearcher.searchAfter(p.startScoreDoc, query,
queryFilter, searchResult.getPageSize(),sort);
}
The page size is set to 50,000.
Okay, that was strange. 50K is fine for a heap. How many concurrent
searches are you running?
Just one search at a time, although the index searcher is passed an executor with a thread pool of 16 or so.

What are the best JVM collector settings for Lucene searching? We're
tried various options and they don't seem to make much difference.
I am no expert there, but I will advice you to check how much free
memory your JVM has when it is running searches. GC-tweaks does not help
much if the JVM is nearly our of memory.
There is a plenty of memory available. The heap is set to 6 Gigs.

- Toke Eskildsen, State and University Library, Denmark



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to