Erick,

Ouch!! Please excuse the cut-n-paste ;)

LIA mentions a lot about performance when doing sorting. Is it something to
be cautious about? You mention doing 5 fields and it works ok, ... can share
with us how many documents you are handling there with 5 fields ?

Thanks.

~KEGan

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

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