lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lis...@alphamatrix.org
Subject Re: how to remove the dash
Date Mon, 25 Jun 2012 21:12:16 GMT
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 listas@alphamatrix.org 
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message