lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <>
Subject Problem with a "." for searching Lucene 2.4.0
Date Wed, 25 Nov 2009 17:57:00 GMT

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...

So my thought was to modify a CustomQueryParser (which i already use for 

To scan the information I'm using this:

Document doc....

doc.add(new Field(fieldName.getValue(),  value, Field.Store.NO, 

The question is: Is this the best solution or does exist a better one ?

Many thanks in advance.

Kind regards
Karl Heinz Marbaise
SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 W├╝rselen                 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message