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

A search by topic with the Page Search service does not work

      How to reproduce

      • insert the page search service into a page
      • set the following parameters (see screenshot)
      • do a preview search

      The service does not return any results.

      However, if you change the service and remove the pages in the "search by topic" context, the service goes up the results.

      // Niveau : INFO
      Catégorie : org.ametys.web.frontoffice.FrontOfficeSearcherFactory
      URI de la requête : /preview/www/fr/actualites.html
      Message : Solr query: q=({!ametys join="contentIds_s_dv" q="\(\(_documentType\:content\)\)"})&start=0&rows=2147483647&fl=id,score&fq=site:www&fq=sitemap:fr&fq=((*:* -_documentType:page)) OR ({!ametys join="contentIds_s_dv" q="allContentTypes\:org.ametys.plugins.news.Content.news"})&fq=((id:"fr/vous-etes/lyceen" OR page-ancestorIds:"fr/vous-etes/lyceen"))&fq=(_documentType:"page")&fq={!acl populationId=utilisateurs login=aservices groups="79#groupes-sql,entp#groupes-ldap,55#groupes-sql,testAnyware#groupes-ldap"}&sort=score desc
      Emplacement : org.ametys.cms.search.solr.SearcherFactory$Searcher._querySolrServer(SearcherFactory.java:460)
      

          [CMS-10019] A search by topic with the Page Search service does not work

          Simon Prieul (Inactive) made changes -
          Resolution New: Invalid [ 6 ]
          Status Original: In Progress [ 3 ] New: Closed [ 6 ]

          Not due to the kernel but to the skin which overrides a template of search-criteria-3.3.xsl using @path instead of @id

          Simon Prieul (Inactive) added a comment - Not due to the kernel but to the skin which overrides a template of search-criteria-3.3.xsl using @path instead of @id
          Simon Prieul (Inactive) made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Frederic Ravetier (Inactive) made changes -
          Due Date New: 26/Sep/19
          Frederic Ravetier (Inactive) made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]

          Seems to work in master (4.3.x currently in sprint M3) and in 4.2.3

          Simon Prieul (Inactive) added a comment - Seems to work in master (4.3.x currently in sprint M3) and in 4.2.3
          Anastasia François made changes -
          Attachment New: paramètre de contextes de recherche.png [ 21861 ]
          Attachment New: paramètre général.png [ 21862 ]
          Anastasia François made changes -
          Description Original: {code:java}
          // Niveau : INFO
          Catégorie : org.ametys.web.frontoffice.FrontOfficeSearcherFactory
          URI de la requête : /preview/www/fr/actualites.html
          Message : Solr query: q=({!ametys join="contentIds_s_dv" q="\(\(_documentType\:content\)\)"})&start=0&rows=2147483647&fl=id,score&fq=site:www&fq=sitemap:fr&fq=((*:* -_documentType:page)) OR ({!ametys join="contentIds_s_dv" q="allContentTypes\:org.ametys.plugins.news.Content.news"})&fq=((id:"fr/vous-etes/lyceen" OR page-ancestorIds:"fr/vous-etes/lyceen"))&fq=(_documentType:"page")&fq={!acl populationId=utilisateurs login=aservices groups="79#groupes-sql,entp#groupes-ldap,55#groupes-sql,testAnyware#groupes-ldap"}&sort=score desc
          Emplacement : org.ametys.cms.search.solr.SearcherFactory$Searcher._querySolrServer(SearcherFactory.java:460)
          {code}

          New: *How to reproduce*
          * insert the page search service into a page
          * set the following parameters (see screenshot)
          * do a preview search

          The service does not return any results.

          However, if you change the service and remove the pages in the "search by topic" context, the service goes up the results.

          {code:java}
          // Niveau : INFO
          Catégorie : org.ametys.web.frontoffice.FrontOfficeSearcherFactory
          URI de la requête : /preview/www/fr/actualites.html
          Message : Solr query: q=({!ametys join="contentIds_s_dv" q="\(\(_documentType\:content\)\)"})&start=0&rows=2147483647&fl=id,score&fq=site:www&fq=sitemap:fr&fq=((*:* -_documentType:page)) OR ({!ametys join="contentIds_s_dv" q="allContentTypes\:org.ametys.plugins.news.Content.news"})&fq=((id:"fr/vous-etes/lyceen" OR page-ancestorIds:"fr/vous-etes/lyceen"))&fq=(_documentType:"page")&fq={!acl populationId=utilisateurs login=aservices groups="79#groupes-sql,entp#groupes-ldap,55#groupes-sql,testAnyware#groupes-ldap"}&sort=score desc
          Emplacement : org.ametys.cms.search.solr.SearcherFactory$Searcher._querySolrServer(SearcherFactory.java:460)
          {code}

          Anastasia François made changes -
          Description Original: {code:java}
          // Niveau : INFO
          Catégorie : org.ametys.web.frontoffice.FrontOfficeSearcherFactory
          URI de la requête : /preview/www/fr/actualites.html
          Message : Solr query: q=({!ametys join="contentIds_s_dv" q="\(\(_documentType\:content\)\)"})&start=0&rows=2147483647&fl=id,score&fq=site:www&fq=sitemap:fr&fq=((*:* -_documentType:page)) OR ({!ametys join="contentIds_s_dv" q="allContentTypes\:org.ametys.plugins.news.Content.news"})&fq=((id:"fr/vous-etes/lyceen" OR page-ancestorIds:"fr/vous-etes/lyceen"))&fq=(_documentType:"page")&fq={!acl populationId=utilisateurs login=aservices groups="79#groupes-sql,entp#groupes-ldap,55#groupes-sql,testAnyware#groupes-ldap"}&sort=score desc
          Emplacement : org.ametys.cms.search.solr.SearcherFactory$Searcher._querySolrServer(SearcherFactory.java:460)
          {code}
          New: {code:java}
          // Niveau : INFO
          Catégorie : org.ametys.web.frontoffice.FrontOfficeSearcherFactory
          URI de la requête : /preview/www/fr/actualites.html
          Message : Solr query: q=({!ametys join="contentIds_s_dv" q="\(\(_documentType\:content\)\)"})&start=0&rows=2147483647&fl=id,score&fq=site:www&fq=sitemap:fr&fq=((*:* -_documentType:page)) OR ({!ametys join="contentIds_s_dv" q="allContentTypes\:org.ametys.plugins.news.Content.news"})&fq=((id:"fr/vous-etes/lyceen" OR page-ancestorIds:"fr/vous-etes/lyceen"))&fq=(_documentType:"page")&fq={!acl populationId=utilisateurs login=aservices groups="79#groupes-sql,entp#groupes-ldap,55#groupes-sql,testAnyware#groupes-ldap"}&sort=score desc
          Emplacement : org.ametys.cms.search.solr.SearcherFactory$Searcher._querySolrServer(SearcherFactory.java:460)
          {code}

          Raphaël Franchet made changes -
          Fix Version/s New: 4.1.18 [ 15417 ]
          Fix Version/s New: 4.2.5 [ 15416 ]
          Fix Version/s New: 4.3.0 [ 14678 ]

            sprieul Simon Prieul (Inactive)
            afrancois Anastasia François
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: