Skip to content

Commit

Permalink
don't index from harvested datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Oct 31, 2018
1 parent ba31f2b commit 71afda8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ private String addOrUpdateDataset(IndexableDataset indexableDataset) {

/* Full-text indexing using Apache Tika */
if (doFullTextIndexing) {
if (!fileMetadata.getDataFile().isRestricted()&& !fileMetadata.getDataFile().isFilePackage()) {
if (!dataset.isHarvested() && !fileMetadata.getDataFile().isRestricted() && !fileMetadata.getDataFile().isFilePackage()) {
StorageIO<DataFile> accessObject = null;
InputStream instream = null;
ContentHandler textHandler = null;
Expand Down

0 comments on commit 71afda8

Please sign in to comment.