Skip to content

Commit

Permalink
fix(es): Exclude genre "version" from Datacite results
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Feb 5, 2024
1 parent 3054021 commit d99b418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/utils/works.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const getFosmQuery = (options, pit, searchAfter) => {
});
query.query.bool.must.push({ range: { year: { gte: options.year, lte: options.year } } });
// Exclude files for Datacite
query.query.bool.must_not.push({ term: { genre: 'file' } });
query.query.bool.must_not.push({ terms: { genre: ['file', 'version'] } });
query.query.bool.minimum_should_match = 1;
query._source = [
'affiliations', 'authors', 'doi', 'external_ids', 'genre', 'genre_raw', 'hal_id', 'id', 'publisher',
Expand Down

0 comments on commit d99b418

Please sign in to comment.