Yes. I do this with 5 fields and it works just fine. Although your
cut-n-paste got kind of hard to read <G>....

Erick

On 9/29/06, KEGan <[EMAIL PROTECTED]> wrote:

I think I am going to answer my own question.

Just use the

*Sort*<
file:///D:/library/apache/lucene-2.0.0/docs/api/org/apache/lucene/search/Sort.html#Sort(org.apache.lucene.search.SortField[])
>
(SortField<
file:///D:/library/apache/lucene-2.0.0/docs/api/org/apache/lucene/search/SortField.html
>
[] fields)
*Sort*<
file:///D:/library/apache/lucene-2.0.0/docs/api/org/apache/lucene/search/Sort.html#Sort(java.lang.String[])
>
(String <http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html>
[] fields)

This should do it right ?



On 9/29/06, KEGan <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have seen some sort examples in LIA. But cant find what I am looking
> for. How do I sort document by date, AND for all the documents with the
same
> date ... these are sorted by relavency. (Date has higher sort priority
in
> this case).
>
> Thanks.
>


Reply via email to