<div dir="ltr">Hi,<div><br></div><div style>Just out of interest, what are the use cases for such a serialized form? Is this intended to be written by humans or other applications?</div><div style><br></div><div style>--Gunnar</div>
<div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/11 Emmanuel Bernard <span dir="ltr">&lt;<a href="mailto:emmanuel@hibernate.org" target="_blank">emmanuel@hibernate.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey everyone,<br>
<br>
Sanne and I discussed Hibernate Search queries and serialization in<br>
general. I did play around that to represent Hibernate Search DSL<br>
queries into JSON.<br>
<br>
<a href="https://gist.github.com/emmanuelbernard/5760676" target="_blank">https://gist.github.com/emmanuelbernard/5760676</a><br>
<br>
It is a very first draft (not reviewed). What is really nice is that I did not have to<br>
do much adaptation, the Query DSL is expressive enough to have a one to<br>
one port thanks to its context nature.<br>
<br>
I did not work on some of the quirk cases nor tried to optimize the<br>
&quot;80%&quot; use case.<br>
<br>
A nice effect is that I manage to unify the FullTextQuery (including the<br>
types filtering), the lucene query part, the faceting definitions and<br>
the faceting selection.<br>
<br>
Let me know what you think.<br>
_______________________________________________<br>
hibernate-dev mailing list<br>
<a href="mailto:hibernate-dev@lists.jboss.org">hibernate-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hibernate-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/hibernate-dev</a><br>
</blockquote></div><br></div>