Index: trunk/lucene-search-2/src/org/wikimedia/lsearch/spell/SuggestShell.java |
— | — | @@ -3,27 +3,25 @@ |
4 | 4 | import java.io.BufferedReader; |
5 | 5 | import java.io.IOException; |
6 | 6 | import java.io.InputStreamReader; |
7 | | -import java.util.Arrays; |
8 | 7 | import java.util.HashSet; |
9 | 8 | |
10 | 9 | import org.apache.lucene.analysis.Analyzer; |
11 | | -import org.apache.lucene.index.IndexReader; |
12 | | -import org.apache.lucene.store.FSDirectory; |
13 | 10 | import org.wikimedia.lsearch.analyzers.Analyzers; |
14 | 11 | import org.wikimedia.lsearch.analyzers.FieldBuilder; |
15 | 12 | import org.wikimedia.lsearch.analyzers.WikiQueryParser; |
16 | | -import org.wikimedia.lsearch.beans.SearchResults; |
17 | 13 | import org.wikimedia.lsearch.config.Configuration; |
18 | 14 | import org.wikimedia.lsearch.config.GlobalConfiguration; |
19 | 15 | import org.wikimedia.lsearch.config.IndexId; |
20 | | -import org.wikimedia.lsearch.config.IndexRegistry; |
21 | 16 | import org.wikimedia.lsearch.search.NamespaceFilter; |
22 | | -import org.wikimedia.lsearch.spell.Suggest; |
23 | | -import org.wikimedia.lsearch.spell.SuggestResult; |
24 | | -import org.wikimedia.lsearch.spell.SuggestSimilar; |
25 | | -import org.wikimedia.lsearch.spell.Suggest.ExtraInfo; |
26 | 17 | import org.wikimedia.lsearch.spell.dist.DoubleMetaphone; |
27 | 18 | |
| 19 | +/** |
| 20 | + * this provides shell access to the spell check feature |
| 21 | + * for debugging |
| 22 | + * |
| 23 | + * @author rainman |
| 24 | + * |
| 25 | + */ |
28 | 26 | public class SuggestShell { |
29 | 27 | |
30 | 28 | public static void main(String args[]) throws IOException{ |