lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Ragusa <>
Subject Re: checking index for existance of paths
Date Tue, 24 Sep 2013 12:24:33 GMT
On 09/24/2013 12:58 PM, Ruud Dozijn wrote:
> If I want to check a certain file with for example query 'filename:/tmp/test/t1.txt',
I get no results, because the slashes are converted to spaces when doing an exact match, or
the query is split up into 'filename:tmp' , 'filename:test' and 'filename:t1.txt'. Which is
_not_ what I want. 
> What can I do to check for a complete file path?

Do not use the QueryParser.
You do not want an Analyzer, so just create a TermQuery directly.

   Roberto Ragusa    mail at

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

View raw message