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

Can the contentTypes system property be set to multiple in a search model defined from an XML file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0RC3
    • None
    • None
    • None

      When trying to had an multiple="true" attribute to the system ref, I get the following error at request time:

      Category:	org.ametys.cms.search.solr.SolrSearcher
      Message:		Invalid solr request.
      Location:	org.apache.cocoon.util.log.SLF4JLoggerAdapter.warn(SLF4JLoggerAdapter.java:101)
      Thrown:
      org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr: org.apache.solr.search.SyntaxError: Cannot parse '(contentLanguage:"fr" AND allContentTypes:["org.ametys.plugins.news.Content.news","org.ametys.plugins.multimedia.Content.audioGallery"] AND shared:false)': Encountered " "]" "] "" at line 1, column 134.
      Was expecting one of:
          "TO" ...
          <RANGE_QUOTED> ...
          <RANGE_GOOP> ...
          
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:560)
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:234)
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:226)
      	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)
      	at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:975)
      	at org.ametys.cms.search.solr.SolrSearcher.search(SolrSearcher.java:202)
      	at org.ametys.cms.search.solr.SolrSearcher.search(SolrSearcher.java:159)
      	at org.ametys.cms.search.cocoon.SearchAction.act(SearchAction.java:163)
      	at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:125)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
      	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
      [...]
      

            raphael Raphaël Franchet
            trizzi Thibaut Rizzi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: