hi,
This is regarding a statement in the 'Hibernate search in action' book -
Quote:
The process of limiting the number of matching results returned is called pagination. Not only does it limit the number of domain objects loaded by Hibernate Search, it also limits the number of Document objects loaded by Lucene."
According to my understanding, sorting is done on all the matching documents in Lucene before pagination is applied. Suppose have 1000 records in the db and 1000 corresponding documents in the Lucene index. Sorting by one of the fields is requested and also pagination to retrieve the first 10 records. Sorting will be done in Lucene for all the 1000 records before pagination is to fetch the 10 records. Then how can the above statement be correct? Or does it mean something else?
Thanks,
Seema