Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

Query Ignoring Take Value


Just running a simple Find query as such:

                var results = query

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)

It never gets all the results.

I've also noticed that if I do:

            var queryResult = query

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

Edited, Aug 21, 2020 11:32

As long as .Take(12) and .Take(100) yields different results, .Take() is not completely ignored.

Are you sure your Find index is up to date?


...will take the 12 first from the index.

if two of those pages actually are deleted from the CMS, then...


...will return only 10 hits.

Happens all the time in dev environments where multiple developers share and mix databases en find indexes.

Edited, Aug 21, 2020 12:36
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.