Uploaded image for project: 'Solr Search Provider'
  1. Solr Search Provider
  2. MGNLEESOLR-114

Handle all fields as Multivalue fields -> no String cast exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 5.0.3, 5.1

      All fields could be multi value fields, so returning an array.

      In info.magnolia.search.solrsearchprovider.logic.result.SingleSolrSearchResultTransformer.transform(SolrDocument, Collection<?>) line 65:

      String author = (String) solrDocument.getFieldValue("author");
      

      Triggers a cast exception.

      Best would be, to return to the script the Lists and not a String.
      Then it would also be easy to loop over the multivalues within the script.

        Acceptance criteria

              Unassigned Unassigned
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD