On Fri, Mar 20, 2009 at 05:03:49PM +0100, Paul Libbrecht wrote:
> query.toString() does a fair job at being reparsed by QueryParser but  
> is there a safe way to do so?

Probably not.  That's certainly not tested or guaranteed.  Pathological input
would break it.

> I have a lucene query object and want a string that QueryParser will  
> reparse fairly exacty.

Query objects are serializable, so that they can be sent over a network in a
search cluster.  Can you use the serialization facilities?

Marvin Humphrey


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