More information...
If I change
System.out.println("Query: " + query.toString("contents"));
to this:
System.out.println("Query: " + query.toString());
I get this result:
"Query: contents:bebidas -contents:agua"As I already tried many diferent Analyzers and I always get the same result maybe it's a problem on the query parser?? A Segunda, 25 de Junho de 2012 21:10:02 [email protected] escreveu: > You are right... i'am not geting the hyphen inside any token... but it still > used as "prohibit operator". > > This is my output: > Test: bebidas - agua > Query: bebidas -agua > Tokens: > 1: [bebidas:0->7:<ALPHANUM>] > 2: [agua:10->14:<ALPHANUM>] > > Test is the original string. > Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
