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

Avoid expanding empty property restrictions if not needed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20
    • 1.1.0
    • solr
    • None

    Description

      Empty property restrictions end up being expanded as a wildcard query on a a field with the property name (e.g. text:*) but that is not good when there're already full text queries running on that property (text:(a b)) as the resulting query, in AND, has a useless and costly clause that could be avoided.
      To get rid of that the trivial fix is to expand full text expressions first and check if a query on that property already exists before creating the wildcard query.

      Attachments

        Activity

          People

            teofili Tommaso Teofili
            teofili Tommaso Teofili
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: