Hi all,
I have an application that could potentially return 100k+ search results depending on the search type, which gives the end user a ui to sort the various columns from these search results. Obviously this is a problem as it is going to kill lucene to perform that much sorting. Is there a way to cap the amount of search results you can work with? I am currently using setFirstResult and setMaxResults (for pagination), but this will only protect the database, not lucene from trying to sort columns on 100k results. The ideal (and what I see frequently) are websites reporting the total results, but only allowing you to work with some subset of them (say 200), and only being able to sort/paginate through those 200, and you have to use further search terms to drill down.
Thanks!
David
|