> 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,
-Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to