Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9478

Implement support for BETWEEN operator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.40.0
    • None
    • indexing
    • None

    Description

      For multivalued properties, the current support of '<' and '>' operators is not sufficient. For example, if we look at the below query -

      select * from [app:Asset] where isdescendantnode("/content") and [code] >= 1080 and [code] < 2000 

      where code is a multivalued Long property, the search results would contain a node which has code set to [1060, 2030, 3010] . This node is returned because it contains values in both the ranges i.e. 1060 < 2000 and 2030 > 1080. So both conditions specified in the query are satisfied. 

      What we actually want here that a node should be returned only if at least one value satisifies both the range conditions. 

      For this we need support for BETWEEN operator.

      Attachments

        Activity

          People

            Unassigned Unassigned
            amrverma Amrit Verma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: