Interface Searchable

All Superinterfaces:
IndexConstants
All Known Subinterfaces:
LocalSearchable, SearchService
All Known Implementing Classes:
DefaultSearchClient, LuceneSearchService

public interface Searchable extends IndexConstants
Lucene Text Search Engine 을 사용한다. (client 용)
Author:
조 영 호
  • Method Details

    • search

      BitSet search(QueryInfo[] info, BitSet moduleFilter, String[] path) throws IOException
      search item
      Parameters:
      info - query 정보
      moduleFilter - 검색이 허용된 module id 의 BitSet. null 이면 module filter 를 적용하지 않고, 비어 있으면 검색이 허용된 module 이 없으므로 결과가 없다. (기존 BitVector 를 대체)
      path - index path (index root 기준 상대 경로) 배열. * 는 경로 한 단계와 일치한다. (예: 모든 module 의 itemType 12 attribute index : */attribute/12)
      Returns:
      IndexConstants.ITEM_ID 를 수집한 BitSet
      Throws:
      IOException - search engine 오류
    • addDocument

      void addDocument(Indexable doc) throws IOException
      document 를 index 에 추가(교체)한다. Indexable.getDocument() 가 null 이면 제거한다.
      Parameters:
      doc - index 대상
      Throws:
      IOException - index 오류
    • isLocal

      boolean isLocal()
      서버가 Local 인지 아니면 Remote 인지
      Returns:
      local 이면 true