Sorting in lucene.net -
I have received my Lucene Index with a field that should be sorted on. I have my query and I can do my sorted object. If I think Jawadok is right, then I should be able to query .Sets (). But there is no such way ...
Sure I am missing something important. Any suggestions?
There are actually two important points first, the area must be indexed. Second, pass the sort object into the overloaded method.
The last time I saw, docs did not work very well to point to the indexing part, and it is definitely not understood why it is
when a field is sorted , Then the Finder creates an array with an element for each document in the index. It uses information from the word index to populate this array so that it can sort very quickly. If you have a lot of documents, it can use a lot of memory, so there is no need to, unless a field is sorted.
Another warning: There must not be more than one value stored in each field in a sorted field. If there are multiple values, Lucin does not know who to use as a sort key.
Comments
Post a Comment