I have approximately 10 million objects indexed using NIOFSDirectory.
When I retrieve documents with MatchAllDocsQuery, the performance is significantly worse than other types of Query's, such as BooleanQuery. I ran some tests, performance is approximately 100 times worse.
Since I am only interested in the top n documents anyway, is there a way to retrieve them from the Searcher object without using MatchAllDocsQuery?
I am also considering using WildcardQuery on a random property of the object, but Lucene in Action claims that there are "performance degradations" associated with WildcardQuery.
Suggestions are greatly appreciated!