Uploaded image for project: '[Read Only] - Hippo Plugins'
  1. [Read Only] - Hippo Plugins
  2. HIPPLUG-112

Every plugin using a query must make sure that the query contains an order by clause

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Top
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      Description

      You must add a order by clause to the query when you want getSize() of the QueryResult. From jackrabbit 2.0 and higher (CMS trunk now) you'll get -1 for getSize() if you do not have ordering. Yes...it is an insane feature imo of jackrabbit, can't help it. If you don't know where to sort on, just add: 'order by @jcr:score descending'.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aschrijvers Ard Schrijvers
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: