lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Heinz Marbaise <khmarba...@gmx.de>
Subject Problem with a "." for searching Lucene 2.4.0
Date Wed, 25 Nov 2009 17:57:00 GMT
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...

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

To scan the information I'm using this:

Document doc....

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


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                           http://www.soebes.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message