November Happy Hour will be moved to Thursday December 5th.

Number of Hits returned from query.GetResults()

Vote:
 

Greetings

I am testing EPiServer.Find using a developer index. All my queries always returns just 10 hits even though the actual total count is alot more. Is it possible to increase this ammount some how or is it just a limitation placed there due to it being a developer index?

#75095
Sep 17, 2013 16:32
Vote:
 

The default number of hits returned in a query is 10. To get more/page you can use:

query
.Skip() // bypass the specified number of hits in the resultlist
.Take() // the number of hits returned in the result
.GetResult()

If you want the total number of matching hits (regardless of the number you want to have returned) you just use:

result.TotalMatching

Best Regards,

Henrik

#75096
Sep 17, 2013 17:00
Vote:
 

Thank you very muc :)

I also discovered this searching the sdk abit.

#75097
Sep 17, 2013 17:05
* 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.