searchability is set only when the product visibility is private

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/ckan-util-library@133699 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-10-28 09:07:49 +00:00
parent e18c5ff89c
commit d72230215b
1 changed files with 5 additions and 4 deletions

View File

@ -795,10 +795,11 @@ public class DataCatalogueImpl implements DataCatalogue{
logger.info("Was visibility set to " + (setPublic ? "public" : "private") + "? " + visibilitySet);
// set searchable to true
boolean searchableSet = setSearchableField(res.getId(), true);
logger.info("Was searchable set to True " + searchableSet);
// set searchable to true if dataset visibility is private
if(!setPublic){ // (swap to private)
boolean searchableSet = setSearchableField(res.getId(), true);
logger.info("Was searchable set to True? " + searchableSet);
}
return res.getId();
}