Elasticsearch

Lucene 설치

Jack Moon 2012. 10. 8. 15:38

Lucene 설치

 다운로드 http://lucene.apache.org/

#  cd /usr/local
#  wget http://mirror.apache-kr.org//lucene/java/lucene-2.9.4.tar.gz
#  tar zxvf lucene-2.9.4.tar.gz

 

 

/etc/profile 설정

#  vi /etc/profile

export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar:/usr/local/lucene-2.9.4/lucene-core-2.9.4.jar:/usr/local/lucene-2.9.4/lucene-demos-2.9.4.jar

 

#  source /etc/profile


 

테스트

#  java org.apache.lucene.demo.IndexFiles /usr/local/jdk1.6.0_24/docs
현재 폴더에 index 폴더 생성됨

#  java org.apache.lucene.demo.SearchFiles ./index
Enter query:
검색어 넣고 엔터

 

 

'Elasticsearch' 카테고리의 다른 글

[Elasticsearch] 엘라스틱서치 데이터 입력  (0) 2015.08.20
[Elasticsearch] 엘라스틱서치 설치  (0) 2015.08.19
Mysql JDBC 설치  (0) 2012.10.08
Lucene 소스 수정 및 컴파일  (0) 2012.10.08
JAVA 설치  (0) 2012.10.08