Yet another query api/language?

Cheers,
Alex

> On 13.05.2015, at 06:23, Carsten Ziegeler <cziege...@apache.org> wrote:
> 
> I'm currently trying to design a new query API which is not string based
> anymore. It would be much easier to use, safer and in no way require you
> to write complex SQL or Xpath queries
> 
> I'll soon have a draft which I'll post here for discussion
> 
> Carsten
> 
> Am 13.05.15 um 11:55 schrieb Dirk Rudolph:
>> There isn’t a way to do this so far but it would be a nice improvement. 
>> 
>> See https://issues.apache.org/jira/browse/SLING-1873 
>> <https://issues.apache.org/jira/browse/SLING-1873>
>> 
>> Cheers, Dirk
>> dirk.rudo...@netcentric.biz <mailto:dirk.rudo...@netcentric.biz> | 
>> www.netcentric.biz <http://www.netcentric.biz/>
>>> On 13 May 2015, at 11:19, Santiago García Pimentel 
>>> <santiago.pimen...@netcentric.biz> wrote:
>>> 
>>> Hello,
>>> 
>>> I wanted to use Sling to find some resources using SQL2 (I would prefer not 
>>> to use the JCR api directly). Unfortunately it seems that the use of limit 
>>> in the query is not supported, so it seems that my only option is to create 
>>> a JCR Query and use query.setLimit(int).
>>> 
>>> Is this correct? I would prefer to use only the Sling API to get these 
>>> resources. The ResourceResolver has a findResources() method, but it does 
>>> not accept any limit.
>>> 
>>> Greetings.
>>> -- 
>>> *Santiago García Pimentel* | Software Engineer
>>> Netcentric Ibérica SL
>>> Av. Diagonal 123 -8ª
>>> 08005 Barcelona
>>> España
>>> Skype: santiago.garciapimentel
>>> santiago.pimen...@netcentric.biz | www.netcentric.es
>> 
>> 
> 
> 
> -- 
> Carsten Ziegeler
> Adobe Research Switzerland
> cziege...@apache.org

Reply via email to