Changeset 30147

Show
Ignore:
Timestamp:
31.08.2015 14:30:11 (4 years ago)
Author:
kjdon
Message:

making start_results always start at 0, as sometimes it was 1, sometimes it was 0, and it was too confusing

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2LuceneSearch.java

    r30145 r30147  
    183183        } 
    184184        // set up start and end results if necessary 
    185         int start_results = 1; 
     185        // start results always start at 0 
     186        int start_results = 0;  
    186187        if (start_page > 1 && hits_per_page > 0) 
    187188        { 
    188             start_results = ((start_page - 1) * hits_per_page) + 1; 
     189          start_results = ((start_page - 1) * hits_per_page) ;  
    189190        } 
    190191        int end_results = Integer.MAX_VALUE;