lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From haipeng du <haipen...@gmail.com>
Subject limit lucene result
Date Wed, 07 Sep 2005 15:57:45 GMT
The reason that I want to limit returned result is that I do not want
to get out of memory problem. I index lucene with 3 million documents.
Sometimes, searching will return millions of fields back to me. I just
want to get the first 100, for example , to show them to user. Even, I
use search(query,filter,topDocs), I believe it still return all results
back. So how could I limit the lucene returning?

-- 
Haipeng Du
Software Engineer
Comphealth, 
Salt Lake City

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message