-
Bug
-
Resolution: Invalid
-
Critical
-
4.2.4
-
None
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
Resolution | New: Invalid [ 6 ] | |
Status | Original: In Progress [ 3 ] | New: Closed [ 6 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Due Date | New: 26/Sep/19 |
Priority | Original: Major [ 3 ] | New: Critical [ 2 ] |
Attachment | New: paramètre de contextes de recherche.png [ 21861 ] | |
Attachment | New: paramètre général.png [ 21862 ] |
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} |
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} |
Fix Version/s | New: 4.1.18 [ 15417 ] | |
Fix Version/s | New: 4.2.5 [ 15416 ] | |
Fix Version/s | New: 4.3.0 [ 14678 ] |
Not due to the kernel but to the skin which overrides a template of search-criteria-3.3.xsl using @path instead of @id