Space character in fieldname
searched this one, but didn't find satisfying results, here my problem:
my project requiers the fieldname to support space characters, but as a matter of fact the query results wrong after parsing. following my example:
this results in the following output:
String searchTerm = "+machine supplier:(dell OR medion) AND +HD:(200 OR 500)";
QueryParser parser = new QueryParser(Version.LUCENE_30, "ID", new KeywordAnalyzer());
Query q = parser.parse(searchTerm);
System.out.println("query : " + q);
the parser takes the first part of the fieldname "machine supplier" and puts the default field "ID" infront of it.
query : +ID:machine +(supplier:dell supplier:medion) +(HD:200 HD:500)
Is there a way to let the parser know, that the fieldname is the whole term "machine supplier" ?
Am I doing anything else wrong?