Interface Indexable

All Superinterfaces:
IndexConstants
All Known Implementing Classes:
DocumentWrapper

public interface Indexable extends IndexConstants
Index 대상 객체.

getUniqueTerm() 으로 기존 document 를 찾아 교체(update) 한다. getDocument() 가 null 이면 getUniqueTerm() 에 해당하는 document 를 index 에서 제거한다.

Author:
조 영 호
  • Method Details

    • getLocation

      String getLocation()
      index location (index root 기준 상대 경로) 을 구한다.
      Returns:
      index location
    • getUniqueTerm

      org.apache.lucene.index.Term getUniqueTerm()
      update/remove 를 위한 unique term 을 만든다.

      이 term 의 field 는 document 에 keyword 로 index 되어 있어야 한다.

      Returns:
      term for update/remove
    • getDocument

      org.apache.lucene.document.Document getDocument()
      indexing 을 위한 document 를 만든다.
      Returns:
      document for indexing, null 이면 index 에서 제거한다.