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

RE: StandardAnalyzer and Email Addresses

2012-02-26 Thread Steven A Rowe
There is no Analyzer implementation because no one ever made one :). Copy-pasting StandardAnalyzer and substituting UAX29URLEmailTokenizer wherever StandardTokenizer appears should do the trick. Because people often want to be able to search against *both* whole email addresses and URLs *and*

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

RE: StandardAnalyzer and Email Addresses

2012-02-26 Thread Uwe Schindler
Hi, If you want a Tokenizer for your Analyzer that supports eMail detection, use UAX29URLEmailTokenizer (see http://goo.gl/evH97). There is no Analyzer available that uses this Tokenizer, but you can define your own one like StandardAnalyzer, but with this class as Tokenizer (not StandardTokenizer