Interface SearchService

All Superinterfaces:
IndexConstants, Searchable
All Known Implementing Classes:
LuceneSearchService

public interface SearchService extends Searchable
Lucene Search Engine (server 용)
Author:
조 영 호
  • Method Details

    • getAnalyzer

      org.apache.lucene.analysis.Analyzer getAnalyzer()
      검색과 index 에 사용하는 Analyzer
      Returns:
      analyzer
    • commit

      void commit() throws IOException
      변경된 내용을 모든 index 에 commit 한다.
      Throws:
      IOException - index 오류
    • deleteAll

      void deleteAll() throws IOException
      모든 index 의 document 를 지우고 commit 한다. (re-index 전에 사용)
      Throws:
      IOException - index 오류
    • optimize

      void optimize() throws IOException
      Index 를 Optimize (segment 를 하나로 merge) 한다. 비용이 큰 작업이므로 운영 중에는 주의하여 사용한다.
      Throws:
      IOException - index 오류
    • backup

      Path backup() throws IOException
      Index 를 index root 옆의 lucene_yyyy-MM-dd directory 로 backup 한다.
      Returns:
      backup directory
      Throws:
      IOException - index 오류