Exclude records that are under curation
This commit is contained in:
parent
c60a60420f
commit
fa6a9f13e5
src/main/java/eu/openaire/api/mappers/query
|
@ -53,6 +53,7 @@ public interface DataSourceRequestMapper {
|
|||
fqList.add(String.format("oaftype:\"%s\"", "datasource"));
|
||||
fqList.add(String.format("eosctype:\"%s\"", "Data Source"));
|
||||
fqList.add(String.format("deletedbyinference:%s", "false"));
|
||||
fqList.add(String.format("-status:\"%s\"", "under curation"));
|
||||
|
||||
if (!Utils.isNullOrEmpty(src.getId())) {
|
||||
fqList.add(String.format(solrFieldMapping.get("id"), Utils.escapeAndJoin(src.getId(), "OR", false, null)));
|
||||
|
|
|
@ -56,6 +56,7 @@ public interface OrganizationRequestMapper {
|
|||
fqList.add(String.format("deletedbyinference:%s", "false"));
|
||||
fqList.add(String.format("reldatasourcecompatibilityid:(%s)", "\"driver\" OR \"driver-openaire2.0\" OR \"openaire2.0\" OR \"openaire3.0\" OR \"openaire4.0\" OR \"openaire-cris_1.1\" OR \"openaire2.0_data\" OR \"hostedBy\""));
|
||||
fqList.add(String.format("relproject:%s", "[ * TO * ]"));
|
||||
fqList.add(String.format("-status:\"%s\"", "under curation"));
|
||||
|
||||
if (!Utils.isNullOrEmpty(src.getId())) {
|
||||
fqList.add(String.format(solrFieldMapping.get("id"), Utils.escapeAndJoin(src.getId(), "OR", false, null)));
|
||||
|
|
|
@ -53,6 +53,7 @@ public interface ProjectRequestMapper {
|
|||
|
||||
fqList.add(String.format("oaftype:\"%s\"", "project"));
|
||||
fqList.add(String.format("deletedbyinference:%s", "false"));
|
||||
fqList.add(String.format("-status:\"%s\"", "under curation"));
|
||||
|
||||
if (!Utils.isNullOrEmpty(src.getId())) {
|
||||
fqList.add(String.format(solrFieldMapping.get("id"), Utils.escapeAndJoin(src.getId(), "OR", false, null)));
|
||||
|
|
|
@ -69,6 +69,7 @@ public interface ResearchProductsRequestMapper {
|
|||
|
||||
fqList.add(String.format("oaftype:\"%s\"", "result"));
|
||||
fqList.add(String.format("deletedbyinference:%s", "false"));
|
||||
fqList.add(String.format("-status:\"%s\"", "under curation"));
|
||||
|
||||
if (!Utils.isNullOrEmpty(src.getId())) {
|
||||
fqList.add(String.format(solrFieldMapping.get("id"), Utils.escapeAndJoin(src.getId(), "OR", false, null)));
|
||||
|
|
Loading…
Reference in New Issue