Re: Lucene 2.4 - Searching

2009-01-27 Thread Antony Bowesman
Karl Heinz Marbaise wrote: I have a field which is called filename and contains a filename which can of course be lowercase or upppercase or a mixture... I would like to do the following: +filename:/*scm*.doc That should result in getting things like /...SCMtest.doc /...scmtest.doc /...scm

Re: Lucene 2.4 - Searching

2009-01-27 Thread Ian Lea
Hi Sounds like a job for RegexQuery. If you can't figure out how to use it Google will throw up some examples. You can downcase everything yourself or use an analyzer that does it or maybe use a case insensitive regexp. Depending on your file names you might want to avoid StandardAnalyzer. It