Skip to content

Commit

Permalink
SOLR-16101: Add empty constructor for SolrInputDocument (#746) (#751) (
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumg committed Mar 18, 2022
1 parent 7459dd6 commit 4918187
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solr/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ and each individual module's jar will be included in its directory's lib/ folder

* SOLR-16061: CloudSolrClient refactoring: Removed ZK specific methods (Haythem Khiri, David Smiley, janhoy)

* SOLR-16101: Add empty constructor for SolrInputDocument (Anshum Gupta)

Bug Fixes
---------------------
* SOLR-15849: Fix the connection reset problem caused by the incorrect use of 4LW with \n when monitoring zooKeeper status (Fa Ming).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public class SolrInputDocument extends SolrDocumentBase<SolrInputField, SolrInpu
private final Map<String, SolrInputField> _fields;
private List<SolrInputDocument> _childDocuments;

// Required by reflection based libraries for (de)serialization
public SolrInputDocument() {
_fields = new LinkedHashMap<>();
}

public SolrInputDocument(String... fields) {
_fields = new LinkedHashMap<>();
assert fields.length % 2 == 0;
Expand Down

0 comments on commit 4918187

Please sign in to comment.