Hello.

I would like to serialize a query into a string (A) and then to unserialize it back into a query (B)

I guess that a solution is
A) query.toString()
B) StandardQueryParser().parse(query,"")

It is suboptimal for me though, because my app already has a custom query parser (with leadingWildCard = on and default_operator=AND) and i would rather not have a second one, it complicates things a lot : mixing queries built with the custom queryparser and query built programmatically starts smelling wrong


I would rather have a method that would take a query and export it to a string with the options (leadingWildCard = on and default_operator=AND).
Is there such a thing ?

Olivier

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