Package com.easydesk.lucene
Interface Indexable
- All Superinterfaces:
IndexConstants
- All Known Implementing Classes:
DocumentWrapper
Index 대상 객체.
getUniqueTerm() 으로 기존 document 를 찾아 교체(update) 한다. getDocument() 가 null 이면
getUniqueTerm() 에 해당하는 document 를 index 에서 제거한다.
- Author:
- 조 영 호
-
Field Summary
Fields inherited from interface com.easydesk.lucene.IndexConstants
AND, ATTACHMENT_ID, ATTACHMENT_PREFIX, ATTACHMENT_TYPE_ID, ATTRIBUTE_ID, ATTRIBUTE_PREFIX, CREATED_DATE, CREATER_NAME, CREATER_NICK_NAME, CREATER_USER_NAME, DATE, DEPEND_ID, DEPEND_TYPE_ID, FLOAT_NUMBER, ITEM_ID, KEY_WORD, MODULE_ID, NUMBER, OR, PARENT_ID, RANGE, TEXT, USER_ID, USER_ITEM_ID, VALUE_ID -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.document.Documentindexing 을 위한 document 를 만든다.index location (index root 기준 상대 경로) 을 구한다.org.apache.lucene.index.Termupdate/remove 를 위한 unique term 을 만든다.
-
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 에서 제거한다.
-