: 1. &fq=path%3AE%3A%5Cmy_project%5Cecmkit%5Cinfotouch : (org.apache.lucene.queryParser.ParseException: Cannot parse : 'path:E:\my_project\ecmkit\infotouch': Encountered " ":" ": "" ) : : 2. &fq=path:"E:\my_project\ecmkit\test" (return 0 result)
the problem in the first example is that evne though you have URL encoded the query string, you haven't done anything to escape the metacharaters that are special to the query parser. In your second example, you've put quotes arround the value, which helps with some things -- but even in quotes you have to backslash escape the backslash itself... fq=path:"E:\\my_project\\ecmkit\\test" a far easier way to do what you are trying to do would be to use either the FieldQParserPlutin or the TermQParserPlugin... fq={!field f=path}E:\my_project\ecmkit\test fq={!term f=path}E:\my_project\ecmkit\test ...no special escaping or quoting required -Hoss