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

[Script binding] Solr.contentQuery doesn't use the right method

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • 4.3.4, 4.4.0
    • TBD
    • None

      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);
      }

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: