-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properly handle copyrighted data #574
base: master
Are you sure you want to change the base?
Conversation
@@ -268,7 +269,7 @@ trait MultiDraftSearchService { | |||
val idFilter = if (settings.withIdIn.isEmpty) None else Some(idsQuery(settings.withIdIn)) | |||
|
|||
val licenseFilter = settings.license match { | |||
case None => Some(boolQuery().not(termQuery("license", "copyrighted"))) | |||
case None => Some(boolQuery().not(termQuery("license", License.Copyrighted.toString))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dette funker ikkje slik det er no, men konsekvensen er at vi får opp artikler med opphavsrett i ed-søket, så hell i uhell!
Also remove `includeCopyrighted` flag from search
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For bakoverkompabilitets skyld bør vi la includeCopyrighted ligge og heller sette license=all dersom denne er satt.
Data med opphavsrett er lagra med lisens "COPYRIGHTED" og ikkje "copyrighted" så dette søket fungerer ikkje i dag.
https://github.com/NDLANO/Issues/issues/4263