Can I converting a QueryBuilder to lucene syntax string?

I want to serialized a QueryBuiler ,but if using JSON , it will be
difficult to understand.

so I want using the lucene query parser syntax .

so how can i serialized it to lucene query parser syntax, is ES already
have such API?

You can't serialize the result of QueryBuilder into a Lucene query parser syntax, it either using json, or building yourself the lucene query string.

On Wednesday, February 22, 2012 at 10:06 AM, 殷伟峰 wrote:

I want to serialized a QueryBuiler ,but if using JSON , it will be difficult to understand.

so I want using the lucene query parser syntax .

so how can i serialized it to lucene query parser syntax, is ES already have such API?