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

SolrIndexer TrashElementIndexerCallable should not ignore additional documents

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.9.6, 4.10.0
    • None
    • None
    • None
    • 4.10 M4
    • Oui

      Code should be

                      SolrInputDocument document = new SolrInputDocument();
                      List<SolrInputDocument> additionalDocuments = _solrTrashElementIndexer.indexTrashElement(trashElement, document);
                      
                      List<SolrInputDocument> documents = new ArrayList<>(additionalDocuments);
                      documents.add(document);
                      
                      UpdateResponse solrResponse = _solrClient.add(_solrClientProvider.getCollectionName(_workspaceName), documents);
      

            raphael Raphaël Franchet
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: