From 1059bc6c5d9c207a3ecea7344087bc3eb01c9ae2 Mon Sep 17 00:00:00 2001 From: nruest Date: Thu, 5 May 2022 14:47:29 -0400 Subject: [PATCH] Fix incorrect Discard Languages example. --- docs/filters-rdd.md | 2 +- website/versioned_docs/version-0.80.0/filters-rdd.md | 2 +- website/versioned_docs/version-0.90.3/filters-rdd.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/filters-rdd.md b/docs/filters-rdd.md index 6657ee65..62ed7655 100644 --- a/docs/filters-rdd.md +++ b/docs/filters-rdd.md @@ -273,7 +273,7 @@ import io.archivesunleashed._ val languages = Array("en", "fr") -RecordLoader.loadArchives("/path/to/warcs",sc).keepLanguages(languages) +RecordLoader.loadArchives("/path/to/warcs",sc).discardLanguages(languages) ``` ## Discard Content diff --git a/website/versioned_docs/version-0.80.0/filters-rdd.md b/website/versioned_docs/version-0.80.0/filters-rdd.md index 6f074ce7..69f48372 100644 --- a/website/versioned_docs/version-0.80.0/filters-rdd.md +++ b/website/versioned_docs/version-0.80.0/filters-rdd.md @@ -274,7 +274,7 @@ import io.archivesunleashed._ val languages = Set("en", "fr") -RecordLoader.loadArchives("/path/to/warcs",sc).keepLanguages(languages) +RecordLoader.loadArchives("/path/to/warcs",sc).discardLanguages(languages) ``` ## Discard Content diff --git a/website/versioned_docs/version-0.90.3/filters-rdd.md b/website/versioned_docs/version-0.90.3/filters-rdd.md index 487d1256..746c9899 100644 --- a/website/versioned_docs/version-0.90.3/filters-rdd.md +++ b/website/versioned_docs/version-0.90.3/filters-rdd.md @@ -274,7 +274,7 @@ import io.archivesunleashed._ val languages = Array("en", "fr") -RecordLoader.loadArchives("/path/to/warcs",sc).keepLanguages(languages) +RecordLoader.loadArchives("/path/to/warcs",sc).discardLanguages(languages) ``` ## Discard Content