<div dir="ltr">2013/6/13 Hardy Ferentschik <span dir="ltr"><<a href="mailto:hardy@hibernate.org" target="_blank">hardy@hibernate.org</a>></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 <<a href="mailto:gunnar@hibernate.org">gunnar@hibernate.org</a>> wrote:<br>
<br>
> Would creating a "real" query language instead of a serialized object<br>
> 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'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 "HQL object" in JSON or XML. If this is going to be used by application code, it probably doesn't make a big difference.</div>
<div style><br></div><div style>I guess I just don't yet really understand what'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">
> This would allow for a conciser syntax, making it easier to write (that's<br>
> why I asked who would be writing such queries), but probably it'd be more<br>
> work to create such a language. I guess a sub-set of JPQL would work for<br>
> some parts, but additional elements would be needed for facets etc.<br>
<br>
</div>I just don'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>