Seems pretty straight forward. I tried it on build 74 (and a few
previous ones) and this is what i get.
After entering 1 user document into the database and creating the
index. I run these two lines.
List<User> result1 = session.LuceneQuery<User>("Users/ByActivity").ToList();
List<User> result2 = session.Query<User>("Users/ByActivity").ToList();
I previously had the where on there query but took it off to try and
break it down to it's first failing moment. The LuceneQuery comes back
with a result. The Query gives a NullReferenceException with this
stacktrace.
at Raven.Client.Linq.RavenQueryProvider`1.Execute(Expression expression)
at Raven.Client.Linq.RavenQueryProvider`1.System.Linq.IQueryProvider.Execute(Expression
expression)
at Raven.Client.Linq.RavenQueryable`1.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at TestRavenDBDate.Program.Main(String[] args) in c:\documents and
settings\nathan\my documents\visual studio
2010\Projects\TestRavenDBDate\TestRavenDBDate\Program.cs:line 34
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Nathan