1. lucene 簡介 java
Apache Lucene 是一個全文檢索引擎,它不是一個完整的應用程序,但它提交的API能夠很容易的搭建一個具備檢索能力的應用。DownLoad: http://www.apache.org/dyn/closer.lua/lucene/java/5.4.0 express
2.使用 apache
如上面所說,lucene不是一個應用程序,因此咱們沒有什麼可安裝設置的(固然這是基於jvm的,因此java運行環境仍是要的),下載並解壓lucene_5.4.0 下面有幾個文件夾咱們來看下(紅色表示關鍵要用的): app
core: Lucene 核心代碼包
analyzers-common: 提供不一樣語種的分詞解析
analyzers-icu: Analysis integration with ICU (International Components for Unicode).
analyzers-kuromoji: Japanese Morphological Analyzer
analyzers-morfologik: Analyzer for dictionary stemming, built-in Polish dictionary
analyzers-phonetic: Analyzer for indexing phonetic signatures (for sounds-alike search)
analyzers-smartcn: 簡體中文的分詞解析
analyzers-stempel: Analyzer for indexing Polish
analyzers-uima: Analysis integration with Apache UIMA
backward-codecs: Codecs for older versions of Lucene.
benchmark: System for benchmarking Lucene
classification: Classification module for Lucene
codecs: Lucene codecs and postings formats.
demo: 示例代碼
expressions: Dynamically computed values to sort/facet/search on based on a pluggable grammar.
facet: 提供分面索引和查詢能力
grouping: 獲得分組查詢結果集必要組件.
highlighter: 在查詢結果中高亮顯示關鍵字
join: Index-time and Query-time joins for normalized content
memory: Single-document in-memory index implementation
misc: Index tools and other miscellaneous code
queries: 查詢和過濾器,搜索指定單詞或詞組
queryparser: 能夠使用它將用戶輸入的查詢表達式解析爲 Lucene 查詢對象
replicator: Files replication utility
sandbox: Various third party contributions and new ideas
spatial: Geospatial search
spatial3d: 3D spatial planar geometry APIs
suggest: Auto-suggest and Spellchecking support
test-framework: Framework for testing Lucene-based applications jvm
在上面文件夾中找到下面jar包加入到你的項目中,你的應用就具有了luncene開發的能力了 ide