lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aviran Mordo" <>
Subject Bug: TermQuery toString - incorrect
Date Wed, 30 Jul 2003 19:39:49 GMT
I have a TermQuery object which contains a term which has space (two
words). But when I do a toString() I get a query that matches an OR

Example: The Term +"Small Business" results with a toString method as

+(SocioEconomicInformation:Small Business) 

And the expected result should be

+(SocioEconomicInformation:"Small Business")

The problem is when I try to parse it again I get 

+(SocioEconomicInformation:Small Content:Business) 

Because it does not have the double quotes it tokenizes the term "Small
Business" in to two terms [Small] [Business] instead of one [Small

I use Lucene 1.3 RC1. 


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message