Frames | No Frames |
Core | |
org.apache.lucene | Top-level package. |
org.apache.lucene.analysis | API and code to convert text into indexable tokens. |
org.apache.lucene.analysis.br | Analyzer for Brazilian. |
org.apache.lucene.analysis.cjk | Analyzer for Chinese, Japanese and Korean. |
org.apache.lucene.analysis.cn | Analyzer for Chinese. |
org.apache.lucene.analysis.cz | Analyzer for Czech. |
org.apache.lucene.analysis.de | Analyzer for German. |
org.apache.lucene.analysis.el | Analyzer for Greek. |
org.apache.lucene.analysis.fr | Analyzer for French. |
org.apache.lucene.analysis.ngram | |
org.apache.lucene.analysis.nl | Analyzer for Dutch. |
org.apache.lucene.analysis.ru | Analyzer for Russian. |
org.apache.lucene.analysis.snowball | TokenFilter and Analyzer implementations that use Snowball
stemmers. |
org.apache.lucene.analysis.standard | A grammar-based tokenizer constructed with JavaCC. |
org.apache.lucene.analysis.th | |
org.apache.lucene.ant | Ant task to create Lucene indexes. |
org.apache.lucene.benchmark | |
org.apache.lucene.benchmark.byTask |
Benchmarking Lucene By Tasks. |
org.apache.lucene.benchmark.byTask.feeds | Sources for benchmark inputs: documents and queries. |
org.apache.lucene.benchmark.byTask.programmatic | Sample performance test written programatically - no algorithm file is needed here. |
org.apache.lucene.benchmark.byTask.stats | Statistics maintained when running benchmark tasks. |
org.apache.lucene.benchmark.byTask.tasks | Extendable benchmark tasks. |
org.apache.lucene.benchmark.byTask.utils | Utilities used for the benchmark, and for the reports. |
org.apache.lucene.benchmark.standard | |
org.apache.lucene.benchmark.stats | |
org.apache.lucene.benchmark.utils | |
org.apache.lucene.demo | |
org.apache.lucene.demo.html | |
org.apache.lucene.document | The Document abstraction. |
org.apache.lucene.index | Code to maintain and access indices. |
org.apache.lucene.index.memory | High-performance single-document main memory Apache Lucene fulltext search index. |
org.apache.lucene.misc | |
org.apache.lucene.queryParser | A simple query parser implemented with JavaCC. |
org.apache.lucene.queryParser.analyzing | |
org.apache.lucene.queryParser.precedence | |
org.apache.lucene.queryParser.surround.parser | This package contains the QueryParser.jj source file for the Surround parser. |
org.apache.lucene.queryParser.surround.query | This package contains SrndQuery and its subclasses. |
org.apache.lucene.search | Table Of ContentsSearchSearch over indices. |
org.apache.lucene.search.highlight | The highlight package contains classes to provide "keyword in context" features typically used to highlight search terms in the text of results pages. |
org.apache.lucene.search.regex | Regular expression Query. |
org.apache.lucene.search.spans | The calculus of spans. |
org.apache.lucene.search.spell | Suggest alternate spellings for words. |
org.apache.lucene.store | Binary i/o API, used for all index data. |
org.apache.lucene.swing.models | Decorators for JTable TableModel and JList ListModel encapsulating Lucene indexing and searching functionality. |
org.apache.lucene.util | Some utility classes. |
org.apache.lucene.wordnet | This package uses synonyms defined by WordNet to build a Lucene index storing them, which in turn can be used for query expansion. |
org.apache.regexp | This package exists to allow access to useful package protected data within Jakarta Regexp. |
contrib: Analysis | |
org.apache.lucene.analysis.br | Analyzer for Brazilian. |
org.apache.lucene.analysis.cjk | Analyzer for Chinese, Japanese and Korean. |
org.apache.lucene.analysis.cn | Analyzer for Chinese. |
org.apache.lucene.analysis.cz | Analyzer for Czech. |
org.apache.lucene.analysis.de | Analyzer for German. |
org.apache.lucene.analysis.el | Analyzer for Greek. |
org.apache.lucene.analysis.fr | Analyzer for French. |
org.apache.lucene.analysis.ngram | |
org.apache.lucene.analysis.nl | Analyzer for Dutch. |
org.apache.lucene.analysis.ru | Analyzer for Russian. |
org.apache.lucene.analysis.snowball | TokenFilter and Analyzer implementations that use Snowball
stemmers. |
org.apache.lucene.analysis.standard | A grammar-based tokenizer constructed with JavaCC. |
org.apache.lucene.analysis.th |
contrib: Ant | |
org.apache.lucene.ant | Ant task to create Lucene indexes. |
contrib: Benchmark | |
org.apache.lucene.benchmark | |
org.apache.lucene.benchmark.byTask |
Benchmarking Lucene By Tasks. |
org.apache.lucene.benchmark.byTask.feeds | Sources for benchmark inputs: documents and queries. |
org.apache.lucene.benchmark.byTask.programmatic | Sample performance test written programatically - no algorithm file is needed here. |
org.apache.lucene.benchmark.byTask.stats | Statistics maintained when running benchmark tasks. |
org.apache.lucene.benchmark.byTask.tasks | Extendable benchmark tasks. |
org.apache.lucene.benchmark.byTask.utils | Utilities used for the benchmark, and for the reports. |
org.apache.lucene.benchmark.standard | |
org.apache.lucene.benchmark.stats | |
org.apache.lucene.benchmark.utils |
contrib: Highlighter | |
org.apache.lucene.search.highlight | The highlight package contains classes to provide "keyword in context" features typically used to highlight search terms in the text of results pages. |
contrib: GData Server (Java1.5) |
contrib: Lucli | |
lucli | Lucene Command Line Interface |
contrib: Memory | |
org.apache.lucene.index.memory | High-performance single-document main memory Apache Lucene fulltext search index. |
contrib: Miscellaneous | |
org.apache.lucene.misc | |
org.apache.lucene.queryParser.analyzing | |
org.apache.lucene.queryParser.precedence |
contrib: MoreLikeThis |
contrib: RegEx | |
org.apache.lucene.search.regex | Regular expression Query. |
org.apache.regexp | This package exists to allow access to useful package protected data within Jakarta Regexp. |
contrib: Snowball | |
net.sf.snowball | Snowball system classes. |
net.sf.snowball.ext | Snowball generated stemmer classes. |
org.apache.lucene.analysis.snowball | TokenFilter and Analyzer implementations that use Snowball
stemmers. |
contrib: SpellChecker | |
org.apache.lucene.search.spell | Suggest alternate spellings for words. |
contrib: Surround Parser | |
org.apache.lucene.queryParser.surround.parser | This package contains the QueryParser.jj source file for the Surround parser. |
org.apache.lucene.queryParser.surround.query | This package contains SrndQuery and its subclasses. |
contrib: Swing | |
org.apache.lucene.swing.models | Decorators for JTable TableModel and JList ListModel encapsulating Lucene indexing and searching functionality. |
contrib: WordNet | |
org.apache.lucene.wordnet | This package uses synonyms defined by WordNet to build a Lucene index storing them, which in turn can be used for query expansion. |
Analyzer analyzer = new StandardAnalyzer();
|
> java -cp lucene.jar:lucene-demo.jar org.apache.lucene.demo.IndexFiles rec.food.recipes/soupsThe IndexHTML demo is more sophisticated. It incrementally maintains an index of HTML files, adding new files as they appear, deleting old files as they disappear and re-indexing files as they change.
adding rec.food.recipes/soups/abalone-chowder
[ ... ] > java -cp lucene.jar:lucene-demo.jar org.apache.lucene.demo.SearchFiles
Query: chowder
Searching for: chowder
34 total matching documents
1. rec.food.recipes/soups/spam-chowder
[ ... thirty-four documents contain the word "chowder" ... ] Query: "clam chowder" AND Manhattan
Searching for: +"clam chowder" +manhattan
2 total matching documents
1. rec.food.recipes/soups/clam-chowder
[ ... two documents contain the phrase "clam chowder" and the word "manhattan" ... ]
[ Note: "+" and "-" are canonical, but "AND", "OR" and "NOT" may be used. ]
> java -cp lucene.jar:lucene-demo.jar org.apache.lucene.demo.IndexHTML -create java/jdk1.1.6/docs/relnotes
adding java/jdk1.1.6/docs/relnotes/SMICopyright.html
[ ... create an index containing all the relnotes ] > rm java/jdk1.1.6/docs/relnotes/smicopyright.html > java -cp lucene.jar:lucene-demo.jar org.apache.lucene.demo.IndexHTML java/jdk1.1.6/docs/relnotes
deleting java/jdk1.1.6/docs/relnotes/SMICopyright.html