--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
var query = session.Query<OrdersIndex.ReduceResult, OrdersIndex>().Search(x => x.EmailAddress, "Sam@RavenDB.com");orders= query .Skip(3) .Take(3).ToList();
ordersCount=orders.Count;queryCount=query.Count();I have the following results:===ordersCount is 1queryCount is 8But i expectedordersCount is 1queryCount is 4 (coz there are only 4 docs in the db )Same result when i use .Statistics(out stats) as stats.TotalResults also gives 8.Is there a way to count the total number of matching orders in the system to give correct result?
Something like Session.Query<Order>().Count() works (but then gives the count of all the orders corrctly) but Query<OrdersIndex.ReduceResult, OrdersIndex>().Search(x => x.EmailAddress, "Sam@RavenDB.com").Count() (done over the index) doesn't and its the count of orders that matches the search criteria I need
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811