From c11d32faed441c0fdf564c7fb5aac6723b339f14 Mon Sep 17 00:00:00 2001
From: Tomoko Uchida
- *
* For some concrete implementations bundled with Lucene, look in the analysis modules:
*
* NOTE: if you just want to reuse on a per-field basis, it's easier to
* use a subclass of {@link AnalyzerWrapper} such as
- *
+ *
* PerFieldAnalyerWrapper instead.
*/
public Analyzer(ReuseStrategy reuseStrategy) {
diff --git a/lucene/core/src/java/org/apache/lucene/analysis/package-info.java b/lucene/core/src/java/org/apache/lucene/analysis/package-info.java
index b7e752c4578..83736aec4c3 100644
--- a/lucene/core/src/java/org/apache/lucene/analysis/package-info.java
+++ b/lucene/core/src/java/org/apache/lucene/analysis/package-info.java
@@ -158,10 +158,10 @@
* supplies a large family of
@@ -170,7 +170,7 @@
* all under the 'analysis' directory of the distribution. Some of
* these support particular languages, others integrate external
* components. The 'common' subdirectory has some noteworthy
- * general-purpose analyzers, including the PerFieldAnalyzerWrapper. Most ICUCollationKeyAnalyzer
, available in the icu analysis module,
+ * ICUCollationKeyAnalyzer
, available in the icu analysis module,
* uses ICU4J's Collator
, which
* makes its version available, thus allowing collation to be versioned
* independently from the JVM. ICUCollationKeyAnalyzer
is also
diff --git a/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java b/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java
index b9a798b97e5..2749c1cb700 100644
--- a/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java
+++ b/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java
@@ -64,19 +64,19 @@ import org.apache.lucene.util.Version;
*
- *
*
@@ -103,7 +103,7 @@ public abstract class Analyzer implements Closeable {
* Analyzer
classes that deliver useful
* analysis chains. The most common of these is the StandardAnalyzer.
* Many applications will have a long and industrious life with nothing more
- * than the StandardAnalyzer
. The analyzers-common
+ * than the StandardAnalyzer
. The analyzers-common
* library provides many pre-existing analyzers for various languages.
* The analysis-common library also allows to configure a custom Analyzer without subclassing using the
- * CustomAnalyzer
+ * CustomAnalyzer
* class.
* Analyzer
s perform the same operation on all
+ * general-purpose analyzers, including the PerFieldAnalyzerWrapper. Most Analyzer
s perform the same operation on all
* {@link org.apache.lucene.document.Field}s. The PerFieldAnalyzerWrapper can be used to associate a different Analyzer
with different
* {@link org.apache.lucene.document.Field}s. There is a great deal of
* functionality in the analysis area, you should study it carefully to
@@ -253,7 +253,7 @@
* Tokenizer, and TokenFilter(s) (optional) — or components you
* create, or a combination of existing and newly created components. Before
* pursuing this approach, you may find it worthwhile to explore the
- * analyzers-common library and/or ask on the
+ * analyzers-common library and/or ask on the
* java-user@lucene.apache.org mailing list first to see if what you
* need already exists. If you are still committed to creating your own
* Analyzer, have a look at the source code of any one of the many samples
diff --git a/lucene/core/src/java/overview.html b/lucene/core/src/java/overview.html
index 95d158900de..9338742bd30 100644
--- a/lucene/core/src/java/overview.html
+++ b/lucene/core/src/java/overview.html
@@ -72,8 +72,8 @@ an enumeration of token {@link org.apache.lucene.util.Attribute Attribute}s.&nbs
A TokenStream can be composed by applying {@link org.apache.lucene.analysis.TokenFilter TokenFilter}s
to the output of a {@link org.apache.lucene.analysis.Tokenizer Tokenizer}.
Tokenizers and TokenFilters are strung together and applied with an {@link org.apache.lucene.analysis.Analyzer Analyzer}.
-analyzers-common provides a number of Analyzer implementations, including
-StopAnalyzer
+analyzers-common provides a number of Analyzer implementations, including
+StopAnalyzer
and the grammar-based StandardAnalyzer.
The IndexWriterConfig instance holds all configuration for IndexWriter. For example, we set the OpenMode to use here based on the value