Apache Lucene open-source search software
improve javadocs: explain that holes must NOT be preserved for the stopword example to work
Michael McCandless32dd9836c526
diff --git a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggester.java b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggester.javaindex 5b96f0d61fc..c59c7040bb6 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggester.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/AnalyzingSuggester.java@@ -73,8 +73,14 @@ import org.apache.lucene.util.fst.Util;* This can result in powerful suggester functionality. For* example, if you use an analyzer removing stop words,* then the partial text "ghost chr..." could see the- * suggestion "The Ghost of Christmas Past". If- * SynonymFilter is used to map wifi and wireless network to+ * suggestion "The Ghost of Christmas Past". Note that+ * your stop filter must NOT preserve position increments+ * for this to work, which means you cannot use the {@code+ * StopFilter} from the analysis module because it always+ * preserves position increments.+ *+ * <p>+ * If SynonymFilter is used to map wifi and wireless network to* hotspot then the partial text "wirele..." could suggest* "wifi router". Token normalization like stemmers, accent* removal, etc., would allow suggestions to ignore such