Skip to content

Commit

Permalink
Merge pull request #9964 from ErykKul/9836_always_add_validity_field_…
Browse files Browse the repository at this point in the history
…to_solr_doc

Always add validity field when indexing a dataset
  • Loading branch information
sekmiller authored Jan 22, 2024
2 parents 1f24f7c + b3c0776 commit 1122462
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,7 @@ public SolrInputDocuments toSolrDocs(IndexableDataset indexableDataset, Set<Long
version.setDatasetFields(version.initDatasetFields());
valid = version.isValid();
}
if (JvmSettings.API_ALLOW_INCOMPLETE_METADATA.lookupOptional(Boolean.class).orElse(false)) {
solrInputDocument.addField(SearchFields.DATASET_VALID, valid);
}
solrInputDocument.addField(SearchFields.DATASET_VALID, valid);

final Dataverse dataverse = dataset.getDataverseContext();
final String dvIndexableCategoryName = dataverse.getIndexableCategoryName();
Expand Down

0 comments on commit 1122462

Please sign in to comment.