Re: Query servlet

2017-05-24 Thread Robert Munteanu
On Tue, 2017-05-23 at 11:18 +, Valentin Olteanu wrote:
> I get results after installing it, but I'm still looking for
> something that
> comes out of the box in launchpad (and that's ideally not
> deprecated). Any
> ideas?

Composum does include a query functionality, but AFAICT it only returns
HTML. Not sure if that's what you're looking for.

Robert


Re: Query servlet

2017-05-23 Thread Valentin Olteanu
Thanks Robert for the hints! I thought the compat bundle was already
present.

I get results after installing it, but I'm still looking for something that
comes out of the box in launchpad (and that's ideally not deprecated). Any
ideas?


On Tue, May 23, 2017 at 12:52 PM Robert Munteanu  wrote:

> Hi,
>
> On Tue, 2017-05-23 at 10:10 +, Valentin Olteanu wrote:
> > Hi all,
> >
> > Is there a query servlet still available out of the box in Sling?
> > I've found that JsonQueryServlet was deprecated (SLING-2226), but I
> > was
> > wondering what's the best alternative?
>
> If you want to use this servlet you should deploy the
> org.apache.sling.servlets.compat bundle to your launchpad instance.
>
> >
> > PS: JsonQueryServlet not only was deprecated, but it seems it's not
> > working
> > anymore. When trying to access http://localhost:8080/home.query.json
> > , I
> > get:
> > Invalid recursion selector value 'query' (400)
>
> That sounds like the DefaultGetServlet serving the request. You can
> double-check if that is the case using the recent requests console
>
>   http://localhost:8080/system/console/requests
>
> Robert
>
>


Re: Query servlet

2017-05-23 Thread Robert Munteanu
Hi,

On Tue, 2017-05-23 at 10:10 +, Valentin Olteanu wrote:
> Hi all,
> 
> Is there a query servlet still available out of the box in Sling?
> I've found that JsonQueryServlet was deprecated (SLING-2226), but I
> was
> wondering what's the best alternative?

If you want to use this servlet you should deploy the
org.apache.sling.servlets.compat bundle to your launchpad instance.

> 
> PS: JsonQueryServlet not only was deprecated, but it seems it's not
> working
> anymore. When trying to access http://localhost:8080/home.query.json
> , I
> get:
> Invalid recursion selector value 'query' (400)

That sounds like the DefaultGetServlet serving the request. You can
double-check if that is the case using the recent requests console

  http://localhost:8080/system/console/requests

Robert



Query servlet

2017-05-23 Thread Valentin Olteanu
Hi all,

Is there a query servlet still available out of the box in Sling?
I've found that JsonQueryServlet was deprecated (SLING-2226), but I was
wondering what's the best alternative?

PS: JsonQueryServlet not only was deprecated, but it seems it's not working
anymore. When trying to access http://localhost:8080/home.query.json , I
get:
Invalid recursion selector value 'query' (400)

Thanks,
Valentin


RE: Query Servlet and SQL2

2011-08-04 Thread Mark Herman
Thanks to both for quick responses. Unfortunately I'm tied to a earlier
release for now but my question is answered. Thanks.

-Original Message-
From: Eric Norman [mailto:eric.d.nor...@gmail.com] 
Sent: Thursday, August 04, 2011 1:22 PM
To: users@sling.apache.org
Subject: Re: Query Servlet and SQL2

See https://issues.apache.org/jira/browse/SLING-1533


On Thu, Aug 4, 2011 at 10:09 AM, Mark Herman  wrote:

> I'm trying to use the .query.json request with a JCR_SQL2 query but I can't
> find what queryType I should pass on or even if it's supported. Of course I
> could use the old sql syntax but I was trying to stick to SQL2 considering
> that JCR2.0 depreciates the old one. Thanks.
>


Re: Query Servlet and SQL2

2011-08-04 Thread Eric Norman
See https://issues.apache.org/jira/browse/SLING-1533


On Thu, Aug 4, 2011 at 10:09 AM, Mark Herman  wrote:

> I'm trying to use the .query.json request with a JCR_SQL2 query but I can't
> find what queryType I should pass on or even if it's supported. Of course I
> could use the old sql syntax but I was trying to stick to SQL2 considering
> that JCR2.0 depreciates the old one. Thanks.
>


Re: Query Servlet and SQL2

2011-08-04 Thread Mark Adamcin
I believe the queryType parameter should map to the query language constant
values defined by javax.jcr.query.Query. The value for JCR_SQL2 is
"JCR-SQL2".

Mark Adamcin
Acquity Group



On Thu, Aug 4, 2011 at 10:09 AM, Mark Herman  wrote:

> I'm trying to use the .query.json request with a JCR_SQL2 query but I can't
> find what queryType I should pass on or even if it's supported. Of course I
> could use the old sql syntax but I was trying to stick to SQL2 considering
> that JCR2.0 depreciates the old one. Thanks.
>


Query Servlet and SQL2

2011-08-04 Thread Mark Herman
I'm trying to use the .query.json request with a JCR_SQL2 query but I can't
find what queryType I should pass on or even if it's supported. Of course I
could use the old sql syntax but I was trying to stick to SQL2 considering
that JCR2.0 depreciates the old one. Thanks.