Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8502

Negative queries at a non top-level clause

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.0
    • 4.0.0
    • Plugin : Search
    • None
    • 4.1 RC1

      ...can sometimes not work.


      allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable))

      does not return any result.


      allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable))

      does.


      I think we should have a tour of implementations of org.ametys.cms.search.query.Query and replace in #build methods "-" by "*:* -"

      See also CMS-7940
      See also ContentTypeQuery#build, NotQuery#build and DocumentTypeQuery which are already fixed

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: