Re: Problem with a "." for searching Lucene 2.4.0

2009-11-29 Thread Erick Erickson
See below On Sat, Nov 28, 2009 at 4:39 PM, Karl Heinz Marbaise wrote: > Hi Ian, > > many thanks for the hints...based on your and Ericks hints i have taken a > deeper look into that...and the StandardAnalyzer which I'm using will > removed informations like "." and "-" from my queries > (+filenam

Re: Problem with a "." for searching Lucene 2.4.0

2009-11-28 Thread Karl Heinz Marbaise
Hi Ian, many thanks for the hints...based on your and Ericks hints i have taken a deeper look into that...and the StandardAnalyzer which I'm using will removed informations like "." and "-" from my queries (+filename:testEXCEL-formats.xls) ... In addition to Erick's advice, since you are st

Re: Problem with a "." for searching Lucene 2.4.0

2009-11-25 Thread Ian Lea
In addition to Erick's advice, since you are storing filename without analysis you could use a TermQuery to find it. You can use BooleanQuery to combine that with other queries, including those generated by QueryParser. -- Ian. On Wed, Nov 25, 2009 at 6:11 PM, Erick Erickson wrote: > The first

Re: Problem with a "." for searching Lucene 2.4.0

2009-11-25 Thread Erick Erickson
The first question for this is always "what analyzers do you use at index AND query time?". I'd do two things immediately. First, what does query.toString() show you the query parses to? StandardAnalyzer does some "interesting" things with periods. Also, you have a hyphen (-) in your query which i

Problem with a "." for searching Lucene 2.4.0

2009-11-25 Thread Karl Heinz Marbaise
Hi, i'm just using Lucene 2.4 and have a problem with a "." within a field. This field contains a filename and obviously a filename can contain a "." (or multiple of them)... So if i do a search "+filename:testExcel-xaz.xls" this file will not be found...If i replace the "." with "?" it works