On Thu, 2006-08-31 at 14:27 -0400, Mark Miller wrote: > When is a query rewritten? I build my query and then before using it, I > would like to print it out to double check it. Not possible? Does the > rewrite happen inside search?
Right, you can't do a toString prior to rewriting it. The problem is of course that the rewritten query contains lots of possible choises for the fuzzy term, extracted from the IndexReader passed when rewriting it. If you reallt really want to inspect the rewritten query, create a new instance and pass on the IndexReader. This will be slow though. In fact, fuzzy span is quite slow by it self. By the way, what do you plan to use it for? I use it as a very crued text mining classifier, never exposed to the end user. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]