RavenDb Skips items when there are no filter conditions

I want to get all documents of any type by the following query:

var customers = documentSession.Query<Customer>()

but in this case I get only 1 result (although there are 78 of them). If I add a filter condition that is always true, I get all 78 documents:

var customers = documentSession.Query<Customer>().Where(c => c.Id != null).ToList();

I assume this is a mistake.

Update. RavenDb Build 531

Update 2

Daniel and Orin, sorry for the delay.

I prepared a sample application. You can download it here: http://www.2shared.com/file/AGIAR5UA/RavenDbSampleAppication.html

There is a NUnit test project that references SkazhiKazinoNet.Data.Model.dll, where the model is defined. I just added a package with the latest RavenDb and imported data from dump4.raven (you can find it in / Raven / tools packages) from Raven.Smuggler.

+5
2

, ( ) - :

  • ,
  • , .

- ?

, , .ToList() .

+2

, .

. :

curl -X GET http://localhost:8080/indexes/dynamic/Casinos

{"Results":[],"Includes":[],"IsStale":false,"IndexTimestamp":"2011-12-31T02:19:51.2660000","TotalResults":0,"SkippedResults":0,"IndexName":"LastComments","IndexEtag":"00000000-0000-0100-0000-000000000078"}

. . , .

, , , .

+2

All Articles