[ 
https://issues.apache.org/jira/browse/SLING-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Edelson updated SLING-573:
---------------------------------

    Description: 
it would be great to allow a "q=" parameter similar to google that would allow 
for simple and easy
querying of the repository in google style.

this would be an additional feature that would auto detect the querytype based 
on the query.
it is neither a "sql", "xpath" or google syntax jcr:contains query...

examples:
--
/mynode.query.json?q=SELECT%20*%20FROM%20nt%3abase 
... translates into ...
SELECT * FORM nt:base WHERE jcr:path like '/mynode/%'
--
/mynode.query.json?q=mytest
... translates into ...
SELECT * FORM nt:base WHERE jcr:path like '/mynode/%' and jcr:contains(*, 
'mytest')

--
or xpath equivalent... ;)

  was:
it would be great to allow a "q=" parameter similar to google that would allow 
for simple and easy
querying of the repository in google style.

this would be an additional feature that would auto detect the querytype based 
on the query.
it is neither a "sql", "xpath" or google syntax jcr:contains query...

examples:
--
/mynode.query.json?q=SELECT%20*%20FROM%20nt%3abase 
... translates into ...
SELECT * FORM nt:base WHERE jcr:path like '/mynode/%'
--
/mynode.query.json?q=mytest
... translates into ...
SELECT * FORM nt:base WHERE jcr:path like '/mynode/%' and jcr:contains(*, 
'mytest')

--
or xpath equivalent... ;)



> google-style shorthand on query.json
> ------------------------------------
>
>                 Key: SLING-573
>                 URL: https://issues.apache.org/jira/browse/SLING-573
>             Project: Sling
>          Issue Type: Improvement
>          Components: Servlets
>            Reporter: David Nuescheler
>
> it would be great to allow a "q=" parameter similar to google that would 
> allow for simple and easy
> querying of the repository in google style.
> this would be an additional feature that would auto detect the querytype 
> based on the query.
> it is neither a "sql", "xpath" or google syntax jcr:contains query...
> examples:
> --
> /mynode.query.json?q=SELECT%20*%20FROM%20nt%3abase 
> ... translates into ...
> SELECT * FORM nt:base WHERE jcr:path like '/mynode/%'
> --
> /mynode.query.json?q=mytest
> ... translates into ...
> SELECT * FORM nt:base WHERE jcr:path like '/mynode/%' and jcr:contains(*, 
> 'mytest')
> --
> or xpath equivalent... ;)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to