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

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

Reply via email to