Skip to content

Commit

Permalink
always_add_validity_field_to_solr_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Sep 28, 2023
1 parent 5fc7b30 commit a888398
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -811,9 +811,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 a888398

Please sign in to comment.