Sling
  1. Sling
  2. SLING-573

google-style shorthand on query.json

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Servlets
    • Labels:
      None

      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...

        Issue Links

          Activity

          Gavin made changes -
          Workflow re-open possible,doc-test-required [ 12789908 ] no-reopen-closed,doc-test-required [ 12792313 ]
          Gavin made changes -
          Workflow no-reopen-closed,doc-test-required [ 12767846 ] re-open possible,doc-test-required [ 12789908 ]
          Gavin made changes -
          Link This issue depends upon JCR-1697 [ JCR-1697 ]
          Gavin made changes -
          Link This issue depends on JCR-1697 [ JCR-1697 ]
          Gavin made changes -
          Workflow Copy of no-reopen-closed,doc-test-required [ 12765085 ] no-reopen-closed,doc-test-required [ 12767846 ]
          Gavin made changes -
          Workflow no-reopen-closed,doc-test-required [ 12475779 ] Copy of no-reopen-closed,doc-test-required [ 12765085 ]
          Justin Edelson made changes -
          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... ;)
          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... ;)
          Justin Edelson made changes -
          Link This issue depends upon JCR-2988 [ JCR-2988 ]
          Felix Meschberger made changes -
          Component/s Servlets [ 12313028 ]
          Component/s Servlets Get [ 12312190 ]
          Felix Meschberger made changes -
          Workflow jira [ 12435482 ] no-reopen-closed,doc-test-required [ 12475779 ]
          Felix Meschberger made changes -
          Field Original Value New Value
          Link This issue depends on JCR-1697 [ JCR-1697 ]
          David Nuescheler created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              David Nuescheler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development