RavenDB-2812 Fixing paging over indexing results to avoid expensive queries for fanout indexes where MaxIndexOutputsPerDocument was high. The problem was a feature which ensured skipping items that were already paged in previous pages. It increased the pageSize parameter very slowly and queried Lucene index ridicules number of times. The current implementation increases the number of documents to retrieve from Lucene index much faster. Also the paging algorithm was fixed to ensure valid results.
Fixing tests - the skip formula should always be '(pageNumber * pageSize) + skip' when index produces more than single output per indexed document.
Merge branch 'master' of git://github.com/ayende/ravendb into RavenDB-2812
RavenDB-2812 Added test which confirms that now paging works correctly for fanout indexes
Merge pull request #1487 from arekais/RavenDB-2812

Raven db 2812