Quantcast
Channel: Using Optimizely Platforms
Viewing all articles
Browse latest Browse all 8020

Query Ignoring Take Value

$
0
0

Just running a simple Find query as such:

                var results = query
                    .Take(12)
                    .GetContentResult();

But it only returns 10. Even though total matching is 60.

This means when I am doing my pagination as such

                var results = query
                    .Skip((skip - 1) * take)
                    .Take(take)
                    .GetContentResult();

It never gets all the results.

I've also noticed that if I do:

            var queryResult = query
                .Take(100)
                .GetContentResult();

I get 58 hits and 60 total matching, which doesn't feel right to me either!!


Viewing all articles
Browse latest Browse all 8020

Trending Articles