Changeset 2644
- Timestamp:
- 03/01/13 11:28:45 (11 years ago)
- Location:
- SRUServer/trunk/src/main/java/eu/clarin/sru/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
SRUServer/trunk/src/main/java/eu/clarin/sru/server/SRUSearchResultSet.java
r2623 r2644 58 58 /** 59 59 * The number of records matched by the query. If the query fails this must 60 * be 0. 60 * be 0. If the search engine cannot determine the total number of matched 61 * by a query, it must return -1. 61 62 * 62 * @return the total number of results or 0 if the query failed 63 * @return the total number of results or 0 if the query failed or -1 if the 64 * search engine cannot determine the total number of results 63 65 */ 64 66 public abstract int getTotalRecordCount(); -
SRUServer/trunk/src/main/java/eu/clarin/sru/server/SRUServer.java
r2623 r2644 352 352 353 353 // check, of startRecord position is greater than total record set 354 if ((result.getTotalRecordCount() > 0) && (request.getStartRecord() > 0) && 355 (request.getStartRecord() > result.getTotalRecordCount())) { 354 if ((result.getTotalRecordCount() >= 0) && 355 (request.getStartRecord() > 0) && 356 (request.getStartRecord() > result.getTotalRecordCount())) { 356 357 throw new SRUException(SRUConstants.SRU_FIRST_RECORD_POSITION_OUT_OF_RANGE); 357 358 }
Note: See TracChangeset
for help on using the changeset viewer.