<div dir="ltr">2013/6/13 Hardy Ferentschik <span dir="ltr">&lt;<a href="mailto:hardy@hibernate.org" target="_blank">hardy@hibernate.org</a>&gt;</span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im"><br>
On 13 Jan 2013, at 8:47 AM, Gunnar Morling &lt;<a href="mailto:gunnar@hibernate.org">gunnar@hibernate.org</a>&gt; wrote:<br>
<br>
&gt; Would creating a &quot;real&quot; query language instead of a serialized object<br>
&gt; representation make sense then?<br>
<br>
</div>You mean the Lucene query language -  <a href="http://lucene.apache.org/core/old_versioned_docs/versions/3_4_0/queryparsersyntax.html" target="_blank">http://lucene.apache.org/core/old_versioned_docs/versions/3_4_0/queryparsersyntax.html</a> ;-)<br>

In the end it comes down to that.<br></blockquote><div><br></div><div style>Maybe, if that has everything needed, why not? Or is a goal to hide the fact that Lucene is used underneath? </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
What would the purpose of a new query language be? I guess it would be more object centric, but is this relevant for a user?<br></blockquote><div><br></div><div style>What&#39;s the purpose of the JSON notation? I think for a user its nicer to express a query in a dedicated query language instead of a general-purpose object serialization format. As it is nicer for a human to express queries in say HQL or SQL instead of describing e.g. a &quot;HQL object&quot; in JSON or XML. If this is going to be used by application code, it probably doesn&#39;t make a big difference.</div>
<div style><br></div><div style>I guess I just don&#39;t yet really understand what&#39;s the use case behind.<br></div><div style> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">
&gt; This would allow for a conciser syntax, making it easier to write (that&#39;s<br>
&gt; why I asked who would be writing such queries), but probably it&#39;d be more<br>
&gt; work to create such a language. I guess a sub-set of JPQL would work for<br>
&gt; some parts, but additional elements would be needed for facets etc.<br>
<br>
</div>I just don&#39;t see users of a finished app being exposed to such query functionality.<br>
I see the JSON representation just as a way to serialise the query. To which means I am not sure at the moment.<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
--Hardy</font></span></blockquote></div><br></div></div>