alexshyba / SitecoreSearchContrib

Extension to Sitecore.Search namespace. Includes AdvancedDatabaseCrawler and Searcher. Make sure to check out the website for the project.
http://sitecorian.github.io/SitecoreSearchContrib
25 stars 21 forks source link

Fix SearchHits.FetchResults second parameter (end vs count) #18

Closed ambrauer closed 11 years ago

ambrauer commented 11 years ago

When retrieving paged search results, any page other than the first and last will return more items than it should.

For example, a search resulting in 50 items, page size 10 would go like this: Page 1 (start=0, end=10) => items 1-10 (ok) Page 2 (start=10, end=20) => items 10-30 (wrong) Page 3 (start=20, end=30) => items 20-50 (wrong) Page 4 (start=30, end=40) => items 30-50 (wrong) Page 5 (start=40, end=50) => items 40-50 (ok)

alexshyba commented 11 years ago

thank you, @ambrauer.