Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hits hits = searcher.search(query);
- int offset = page * recordsPerPage;
- int count = Math.min(hits.length() - offset, recordsPerPage);
- for (int i = 0; i < count; ++i) {
- Document doc = hits.doc(offset + i);
- ...
- }
Add Comment
Please, Sign In to add comment