Project

General

Profile

Bug #1427

Updated by Alexander Watzinger almost 4 years ago

When paging when pageing the total number of of hits decreases with increasing start number. number 

 e.g. ie https://demo-dev.openatlas.eu/api/0.1/query/?items=place&limit=50&show=detailed returns 65 hits: 

 <pre> 
 [ 
 { 
 entities: 65, 
 entity_per_page: 50, 
 index: [ 
 { 
 page: 1, 
 start_id: 9408, 
 }, 
 { 
 page: 2, 
 start_id: 15386, 
 }, 
 ], 
 total_pages: 2, 
 } 
 ], 
 </pre> 

 when continueing to the next "page":https://demo-dev.openatlas.eu/api/0.1/query/?items=place&limit=50&show=detailed the total number of hits decreases (to the number of entities left going forward I think) 

 <pre> 
 [ 
 { 
 entities: 15, 
 entity_per_page: 50, 
 index: [ 
 { 
 page: 1, 
 start_id: 9408, 
 }, 
 { 
 page: 2, 
 start_id: 15386, 
 }, 
 ], 
 total_pages: 2, 
 } 
 ], 
 </pre> 

 expected behaviour would be that the hits remain the same, regardless on wich page I currently am

Back