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

Search on select simple content widget does not work

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0M6
    • 4.0M5
    • None
    • None

      I have a simple content type with 2 entries.
      The search tool on this simple content type returns 2 results.
      The executed solr query is

      q=((allContentTypes:odf-enumeration.Degree OR allMixinTypes:odf-enumeration.Degree))&start=0&rows=50&fl=id&fq=_documentType:content&fq=(allowAnyConnectedUser:true OR allowedUsers:(admin#population\-1))&sort=title_s_sort asc
      

      On edition I have the select content widget on this content type.
      The search return nothing. The executed solr query is :

      q=((allContentTypes:odf-enumeration.Degree OR allMixinTypes:odf-enumeration.Degree) AND -(allContentTypes:odf-enumeration.RncpLevel OR allContentTypes:odf-enumeration.Degree OR allContentTypes:org.ametys.plugins.odf.Content.odfContent OR allContentTypes:odf-enumeration.CodeSise OR allContentTypes:odf-enumeration.TeachingTerm OR allContentTypes:org.ametys.plugins.odf.Content.courseListContainer OR allContentTypes:odf-enumeration.CodeCite97 OR allContentTypes:odf-enumeration.JoinOrgunit OR allContentTypes:odf-enumeration.CodeNsf OR allContentTypes:org.ametys.plugins.odf.Content.person OR allContentTypes:odf-enumeration.Level OR allContentTypes:odf-enumeration.Place OR allContentTypes:odf-enumeration.CodeRome OR allContentTypes:odf-enumeration.Internship OR allContentTypes:odf-enumeration.AbstractTableRef OR allContentTypes:odf-enumeration.Domain OR allContentTypes:odf-enumeration.TeachingActivity OR allContentTypes:org.ametys.plugins.odf.Content.courseList OR allContentTypes:odf-enumeration.FormofteachingMethod OR allContentTypes:odf-enumeration.CodeFap OR allContentTypes:odf-enumeration.Mention OR allContentTypes:org.ametys.plugins.odf.Content.orgunit OR allContentTypes:odf-enumeration.FormofteachingOrg OR allContentTypes:org.ametys.plugins.odf.Content.programPart OR allContentTypes:odf-enumeration.DistanceLearningModality OR allContentTypes:odf-enumeration.ProgramType OR allContentTypes:odf-enumeration.CodeErasmus OR allContentTypes:odf-enumeration.CodeDgesip OR allContentTypes:odf-enumeration.TimeSlot OR allContentTypes:org.ametys.plugins.odf.Content.course) AND contentLanguage:"fr")&start=0&rows=50&fl=id&fq=_documentType:content&fq=(allowAnyConnectedUser:true OR allowedUsers:(admin#population\-1))&sort=title_s_sort asc&facet.field={!ex=contributor key=contributor}contributor_dv&facet.field={!ex=workflowStep key=workflowStep}workflowStep_dv&facet.field={!ex=contentTypes key=contentTypes}contentTypes_dv&facet=true
      

          [CMS-7340] Search on select simple content widget does not work

          Laurence Aumeunier made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Laurence Aumeunier made changes -
          Fix Version/s New: 4.0M6 [ 13181 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Laurence Aumeunier made changes -
          Summary Original: Search on select content widget does not work New: Search on select simple content widget does not work

          Laurence Aumeunier added a comment - - edited

          The second solr query excludes allContentTypes:odf-enumeration.AbstractTableRef and allContentTypes:odf-enumeration.Degree.

          The SelectSimpleContent widget is based on "select-content.xml" search model ui which excludes private and simple content types.

          Laurence Aumeunier added a comment - - edited The second solr query excludes allContentTypes:odf-enumeration.AbstractTableRef and allContentTypes:odf-enumeration.Degree . The SelectSimpleContent widget is based on "select-content.xml" search model ui which excludes private and simple content types.
          Laurence Aumeunier made changes -
          Description Original: I have a simple content type with 2 entries.
          The search tool on this simple content type returns 2 results.
          The executed solr query is
          {noformat}
          q=((allContentTypes:odf-enumeration.Domain OR allMixinTypes:odf-enumeration.Domain))&start=0&rows=50&fl=id&fq=_documentType:content&fq=(allowAnyConnectedUser:true OR allowedUsers:(admin#population\-1))&sort=title_s_sort asc
          {noformat}

          On edition I have the select content widget on this content type.
          The search return nothing. The executed solr query is :
          {noformat}
          =((allContentTypes:odf-enumeration.Degree OR allMixinTypes:odf-enumeration.Degree) AND -(allContentTypes:odf-enumeration.RncpLevel OR allContentTypes:odf-enumeration.Degree OR allContentTypes:org.ametys.plugins.odf.Content.odfContent OR allContentTypes:odf-enumeration.CodeSise OR allContentTypes:odf-enumeration.TeachingTerm OR allContentTypes:org.ametys.plugins.odf.Content.courseListContainer OR allContentTypes:odf-enumeration.CodeCite97 OR allContentTypes:odf-enumeration.JoinOrgunit OR allContentTypes:odf-enumeration.CodeNsf OR allContentTypes:org.ametys.plugins.odf.Content.person OR allContentTypes:odf-enumeration.Level OR allContentTypes:odf-enumeration.Place OR allContentTypes:odf-enumeration.CodeRome OR allContentTypes:odf-enumeration.Internship OR allContentTypes:odf-enumeration.AbstractTableRef OR allContentTypes:odf-enumeration.Domain OR allContentTypes:odf-enumeration.TeachingActivity OR allContentTypes:org.ametys.plugins.odf.Content.courseList OR allContentTypes:odf-enumeration.FormofteachingMethod OR allContentTypes:odf-enumeration.CodeFap OR allContentTypes:odf-enumeration.Mention OR allContentTypes:org.ametys.plugins.odf.Content.orgunit OR allContentTypes:odf-enumeration.FormofteachingOrg OR allContentTypes:org.ametys.plugins.odf.Content.programPart OR allContentTypes:odf-enumeration.DistanceLearningModality OR allContentTypes:odf-enumeration.ProgramType OR allContentTypes:odf-enumeration.CodeErasmus OR allContentTypes:odf-enumeration.CodeDgesip OR allContentTypes:odf-enumeration.TimeSlot OR allContentTypes:org.ametys.plugins.odf.Content.course) AND contentLanguage:"fr")&start=0&rows=50&fl=id&fq=_documentType:content&fq=(allowAnyConnectedUser:true OR allowedUsers:(admin#population\-1))&sort=title_s_sort asc&facet.field={!ex=contributor key=contributor}contributor_dv&facet.field={!ex=workflowStep key=workflowStep}workflowStep_dv&facet.field={!ex=contentTypes key=contentTypes}contentTypes_dv&facet=true
          {noformat}
          New: I have a simple content type with 2 entries.
          The search tool on this simple content type returns 2 results.
          The executed solr query is
          {noformat}
          q=((allContentTypes:odf-enumeration.Degree OR allMixinTypes:odf-enumeration.Degree))&start=0&rows=50&fl=id&fq=_documentType:content&fq=(allowAnyConnectedUser:true OR allowedUsers:(admin#population\-1))&sort=title_s_sort asc
          {noformat}

          On edition I have the select content widget on this content type.
          The search return nothing. The executed solr query is :
          {noformat}
          q=((allContentTypes:odf-enumeration.Degree OR allMixinTypes:odf-enumeration.Degree) AND -(allContentTypes:odf-enumeration.RncpLevel OR allContentTypes:odf-enumeration.Degree OR allContentTypes:org.ametys.plugins.odf.Content.odfContent OR allContentTypes:odf-enumeration.CodeSise OR allContentTypes:odf-enumeration.TeachingTerm OR allContentTypes:org.ametys.plugins.odf.Content.courseListContainer OR allContentTypes:odf-enumeration.CodeCite97 OR allContentTypes:odf-enumeration.JoinOrgunit OR allContentTypes:odf-enumeration.CodeNsf OR allContentTypes:org.ametys.plugins.odf.Content.person OR allContentTypes:odf-enumeration.Level OR allContentTypes:odf-enumeration.Place OR allContentTypes:odf-enumeration.CodeRome OR allContentTypes:odf-enumeration.Internship OR allContentTypes:odf-enumeration.AbstractTableRef OR allContentTypes:odf-enumeration.Domain OR allContentTypes:odf-enumeration.TeachingActivity OR allContentTypes:org.ametys.plugins.odf.Content.courseList OR allContentTypes:odf-enumeration.FormofteachingMethod OR allContentTypes:odf-enumeration.CodeFap OR allContentTypes:odf-enumeration.Mention OR allContentTypes:org.ametys.plugins.odf.Content.orgunit OR allContentTypes:odf-enumeration.FormofteachingOrg OR allContentTypes:org.ametys.plugins.odf.Content.programPart OR allContentTypes:odf-enumeration.DistanceLearningModality OR allContentTypes:odf-enumeration.ProgramType OR allContentTypes:odf-enumeration.CodeErasmus OR allContentTypes:odf-enumeration.CodeDgesip OR allContentTypes:odf-enumeration.TimeSlot OR allContentTypes:org.ametys.plugins.odf.Content.course) AND contentLanguage:"fr")&start=0&rows=50&fl=id&fq=_documentType:content&fq=(allowAnyConnectedUser:true OR allowedUsers:(admin#population\-1))&sort=title_s_sort asc&facet.field={!ex=contributor key=contributor}contributor_dv&facet.field={!ex=workflowStep key=workflowStep}workflowStep_dv&facet.field={!ex=contentTypes key=contentTypes}contentTypes_dv&facet=true
          {noformat}
          Laurence Aumeunier made changes -
          Attachment New: screenshot-1.png [ 17792 ]
          Laurence Aumeunier created issue -

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: