From 61a79107a9196c112880a39f049ef8a6c2bc3018 Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Tue, 16 Mar 2021 17:44:53 -0400 Subject: [PATCH] [DOCS] Fix Lucene's stop words links (#70405) (#70476) Co-authored-by: Fabien Caylus --- docs/reference/analysis.asciidoc | 5 +++-- .../analysis/tokenfilters/stop-tokenfilter.asciidoc | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/reference/analysis.asciidoc b/docs/reference/analysis.asciidoc index 15684f60a882a..3db1a89bbe847 100644 --- a/docs/reference/analysis.asciidoc +++ b/docs/reference/analysis.asciidoc @@ -2,7 +2,8 @@ = Text analysis :lucene-analysis-docs: https://lucene.apache.org/core/{lucene_version_path}/analyzers-common/org/apache/lucene/analysis -:lucene-stop-word-link: https://github.com/apache/lucene-solr/blob/master/lucene/analysis/common/src/resources/org/apache/lucene/analysis +:lucene-gh-main-link: https://github.com/apache/lucene/blob/main/lucene +:lucene-stop-word-link: {lucene-gh-main-link}/analysis/common/src/resources/org/apache/lucene/analysis [partintro] -- @@ -58,4 +59,4 @@ include::analysis/tokenfilters.asciidoc[] include::analysis/charfilters.asciidoc[] -include::analysis/normalizers.asciidoc[] \ No newline at end of file +include::analysis/normalizers.asciidoc[] diff --git a/docs/reference/analysis/tokenfilters/stop-tokenfilter.asciidoc b/docs/reference/analysis/tokenfilters/stop-tokenfilter.asciidoc index e3eef08efc931..614ad2ecdaa75 100644 --- a/docs/reference/analysis/tokenfilters/stop-tokenfilter.asciidoc +++ b/docs/reference/analysis/tokenfilters/stop-tokenfilter.asciidoc @@ -282,11 +282,11 @@ parameter and a link to their predefined stop words in Lucene. [[english-stop-words]] `_english_`:: -https://github.com/apache/lucene-solr/blob/master/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishAnalyzer.java#L46[English stop words] +{lucene-gh-main-link}/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishAnalyzer.java#L48[English stop words] [[estonian-stop-words]] `_estonian_`:: -https://github.com/apache/lucene-solr/blob/master/lucene/analysis/common/src/resources/org/apache/lucene/analysis/et/stopwords.txt[Estonian stop words] +{lucene-stop-word-link}/et/stopwords.txt[Estonian stop words] [[finnish-stop-words]] `_finnish_`::