Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-923

Support arithmetic Operators on search

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • jackrabbit-core, query
    • None

    Description

      The query languages should support arithmetic operators over propertie values.

      Example 1: find all nodes with a date property foo with date value plus some time duration that is greater than today (or another date propertie):

      In XPath that's:

      //*[op:add-yearMonthDurations(@foo,xs:yearMonthDuration("P3Y3M")) > xs:dateTime('2006-12-31T00:00:00.000Z')]

      it was added 3 years and 3 months in the date value present in propertie foo and made the comparison during the query.
      The example was based on http://www.w3.org/TR/xquery-operators/#func-add-yearMonthDurations

      Attachments

        Activity

          People

            Unassigned Unassigned
            _hsp Helio S. P.
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: