Closed stevengopmo closed 8 years ago
I finally managed to find the logs and they say
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: The best overloaded method match for 'Raven.Bundles.NodaTime.Indexing.NodaTimeField.AsLocalDate(string)' has some invalid arguments
at CallSite.Target(Closure , CallSite , Type , Object )
at Index_TaskIndex.<.ctor>b__c(Object project)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at Raven.Database.Indexing.RobustEnumerator.MoveNext(IEnumerator en, StatefulEnumerableWrapper`1 innerEnumerator)
That doesn't tell me anything does it you?
looks like I forgot to call ConfigureForNodaTime on the store. Sorry for the confusion
I have the following index that fails to return any documents in my database
from project in docs.Projects select new { Name = project.Name, GoLiveDate = NodaTimeField.Resolve(NodaTimeField.AsLocalDate(project.GoLiveDate)) }
The index saves fine but doesn't return any data at all unless I remove the "GoLiveDate" part.
The code equivalent of my index is
The indexing and storing etc are just my random attempts at trying to find out why I never get any results.
Here is what my documents look like
{ "Name": "Some Project", "Description": "Some Description", "ProjectType": "New", "GoLiveDate": { "ticks": 14523840000000000, "calendar": "ISO" }, }
and the c# version
I'm not even trying to actually filter anything just view the documents in the index. I'm using RavenDB version 3
My bundle settings look like
If there is anything additional that I can give you to help me troubleshoot this I will. Thank you very much.