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

    • Task
    • Status: Closed
    • Top
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: