RE: Most recent document within a group ...

2012-02-27 Thread Dragon Fly
I'll give it a try, thanks. > Date: Mon, 27 Feb 2012 08:29:57 -0500 > Subject: Re: Most recent document within a group ... > From: erickerick...@gmail.com > To: java-user@lucene.apache.org > > Just try it. Sorting doesn't load the document, it does load > the u

Re: Most recent document within a group ...

2012-02-27 Thread Erick Erickson
ks. > >> Date: Sun, 26 Feb 2012 15:39:21 -0500 >> Subject: Re: Most recent document within a group ... >> From: erickerick...@gmail.com >> To: java-user@lucene.apache.org >> >> Have you looked at the Searcher.search variant >> that takes a Sort parameter? >

RE: Most recent document within a group ...

2012-02-27 Thread Dragon Fly
know which Lucene method call would actually load the documents from disk. searcher.doc () maybe? Thanks. > Date: Sun, 26 Feb 2012 15:39:21 -0500 > Subject: Re: Most recent document within a group ... > From: erickerick...@gmail.com > To: java-user@lucene.apache.org > > Have you l

Re: Most recent document within a group ...

2012-02-26 Thread Erick Erickson
Have you looked at the Searcher.search variant that takes a Sort parameter? Best Erick On Sun, Feb 26, 2012 at 8:30 AM, Dragon Fly wrote: > > Hi, > > Let's say I have 6 documents and each document has 2 fields (i.e. > CustomerName and OrderDate).  For example: > > Doc 1    John    20120115 > Do

Most recent document within a group ...

2012-02-26 Thread Dragon Fly
Hi, Let's say I have 6 documents and each document has 2 fields (i.e. CustomerName and OrderDate). For example: Doc 1John20120115 Doc 2Mary20120113 Doc 3Peter 20120117 Doc 4Kate20120208 Doc 5John20120211 Doc 6Alan20110423 Is there a way to execute