Package com.easydesk.util.word
Interface SearchIndex
- All Known Implementing Classes:
EmptySearcher,LuceneSearchIndex
public interface SearchIndex
Support for searching/indexing text
TODO : remove TorqueException
- Version:
- $Id: SearchIndex.java,v 1.48 2007/09/20 09:54:44 youngho Exp $
- Author:
- Youngho Cho
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachmentQuery(Integer[] ids, String text) Specify search criteria for attachmentsvoidDOCUMENT ME!voidSpecify search criteria.voidFiltering implements....returns a BitSet of related item IDs sorted by relevance descending.voidDOCUMENT ME!voidsetMITFilter(BitMatrix bitMatrix, boolean includeAttachment) 검색 대상 Module/ItemType 으로 index location 과 module filter 를 구성한다.voidsetSearcher(int id) voidsetSearchService(Searchable searchService) DOCUMENT ME!
-
Field Details
-
PARSE_ERROR
DOCUMENT ME!- See Also:
-
-
Method Details
-
setSearchService
DOCUMENT ME!- Parameters:
searchService- DOCUMENT ME!
-
setSearcher
void setSearcher(int id) - Parameters:
id- searcher
-
setLocale
DOCUMENT ME!- Parameters:
locale- DOCUMENT ME!
-
addQuery
Specify search criteria. This is incremental. -
addKeyWordQuery
DOCUMENT ME!- Parameters:
av- DOCUMENT ME!
-
addRangeQuery
Filtering implements.... -
addAttachmentQuery
Specify search criteria for attachments -
setMITFilter
검색 대상 Module/ItemType 으로 index location 과 module filter 를 구성한다.- Parameters:
bitMatrix- 검색 대상 (x : Module id, y : ItemType id), 보통MITList.getBitMatrix()includeAttachment- attachment index 도 검색할지- Throws:
TorqueException- 조회 오류
-
getRelatedItems
returns a BitSet of related item IDs sorted by relevance descending. Should return an empty/length=0 BitSet if search returns no results.- Returns:
- bitSet
- Throws:
TorqueExceptionIOException- when searchEngine trouble
-