lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Condit <>
Subject RE: Modify TermQueries or Tokens
Date Sat, 01 May 2010 17:42:35 GMT
> It looks good to me, but I did not test, when testing, we may print out both
> initialQuery.toString() // query produced by QueryParser
> finalQuery.toString()   // query after your new function
> as comparison, besides testing the query result.

Yes - it's exactly what I wanted:
Test Input: "foo OR baz AND (\"bar trumpet test\" OR (cheese AND nacho~.8))"
Initialquery.toString(): (test1:foo test2:foo) +(test1:baz test2:baz) +((test1:"bar trumpet
test" test2:"bar trumpet test") (+(test1:cheese test2:cheese) +(test1:nacho~0.5 test2:nacho~0.5)
(test1:8 test2:8)))
Finaqueryl.toString(): (test1:*foo* test2:*foo*) +(test1:*baz* test2:*baz*) +((test1:"bar
trumpet test" test2:"bar trumpet test") (+(test1:*cheese* test2:*cheese*) +(test1:nacho~0.5
test2:nacho~0.5) (test1:*8* test2:*8*)))

Thanks again,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message