but you see, if i use LuceneQuery.AddOrder, it will work. Sorting also works in raven studio. So i think it's the client api's problem
--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/2pZp21HtXnA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
inline
2013-12-21 下午12:03于 "Kijana Woodard" <kijana....@gmail.com>写道:
>
> Interesting exercise. I'll skip to the end.
>
> @Mouhong - I made the test pass....by simple removing the FieldIndexing.NotAnalyzed call in the index.
I found this, but i don't want to do this, cos that index is huge, i don't want to take a hour or so to reindex it :D
Now i fixed it using luceneQuery.AddOrder() as i mentioned. But i think there might be some bug in the OrderBy apis which accept linq expression.
>
> @Oren:
> Is that a bug?
> Is DocumentQuery being used anymore for sorting? RavenQueryableExtensions seems to use System.
> Linq.Queryable directly.
>
> fwiw: https://github.com/ayende/ravendb/pull/503
>
> @Mouhong - Your test was missing a "WaitForIndexes" step. Using RavenTestBase (ravendb.tests.helpers), you can wait like this:
> https://github.com/kijanawoodard/ravendb/blob/edffeff73a9a5342bc0b49bdcb1b8fb2a48b35ce/Raven.Tests/MailingList/Mouhong.cs#L45
>
> Yea, thanks.
but why with NotAnalyzed, it can work in raven studio but can't work in .net api?
btw: NotAnalyzed means it's not full text searchable, but it can be sorted? Am i missing something? Not quite familiar with lucene
It was brought up in another thread that NotAnalyzed turns off the range feature. Not sure why it works in the studio though.