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

Negative queries at a non top-level clause

    • 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

          [CMS-8502] Negative queries at a non top-level clause

          Simon Prieul (Inactive) made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Simon Prieul (Inactive) made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Patch available [ 10005 ] New: Resolved [ 5 ]
          Simon Prieul (Inactive) made changes -
          Sprint New: 4.1 M7 [ 14 ]
          Simon Prieul (Inactive) made changes -
          Status Original: Open [ 1 ] New: Patch available [ 10005 ]
          Simon Prieul (Inactive) made changes -
          Description Original: ...can not work.



          {code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable)){code}
          does not return any result.


          {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable)){code}
          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
          New: ...can sometimes not work.

          ----

          {code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable)){code}
          does not return any result.

          ----

          {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable)){code}
          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
          Simon Prieul (Inactive) made changes -
          Description Original: can not work

          {code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable)){code}
          does not return any result
          {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable)){code}
          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
          New: ...can not work.



          {code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable)){code}
          does not return any result.


          {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable)){code}
          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
          Simon Prieul (Inactive) made changes -
          Attachment New: org.ametys.cms.search.query.Query.PNG [ 19714 ]
          Simon Prieul (Inactive) made changes -
          Description Original: can not work

          {code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable OR allContentTypes:org.ametys.plugins.thesaurus.Content.item)){code}
          does not return any result
          {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable OR allContentTypes:org.ametys.plugins.thesaurus.Content.item)){code}
          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
          New: can not work

          {code}allContentTypes:content-type.Academie AND (-(allContentTypes:content-type.AbstractRefTable)){code}
          does not return any result
          {code}allContentTypes:content-type.Academie AND (*:* -(allContentTypes:content-type.AbstractRefTable)){code}
          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
          Simon Prieul (Inactive) made changes -
          Assignee New: Simon Prieul [ sprieul ]
          Simon Prieul (Inactive) created issue -

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

              Created:
              Updated:
              Resolved: