Currently, the Solr query is build dynamically to use content types attribute in scripts but we should use directly the ContentSearcherFactory with content types as argument of the create method like it was in the initial example:
function solrQuery(contentTypes, query) { var searcherFactory = serviceManager.lookup("org.ametys.cms.search.content.ContentSearcherFactory"); var searcher = searcherFactory.create(contentTypes); return searcher.search(query); }
- Est référencé par
-
CMS-8769 [Solr search tool] Additional metadata with mixin
-
- Open
-