You can do that out of the box. If the result size is more than a certain
threshold (100, I think) it gathers the results lazily instead of in the
getNodes method itself. So if you do a query which has lots of hits you can
keep that IndexHits instance with you to do pagination and such with. So
Thanks Mattias, that was very helpful.
I have another related question:
Is there a way we can limit the number of search results from the index query?
Basically am looking to implement pagination incase the search results return
say thousands of records. Are there any better solutions to
2 matches
Mail list logo