クラス AbstractFulltextSearchService
java.lang.Object
org.iplass.mtp.impl.fulltextsearch.AbstractFulltextSearchService
- すべての実装されたインタフェース:
FulltextSearchService,Service
- 直系の既知のサブクラス:
LuceneFulltextSearchService
-
ネストされたクラスの概要
ネストされたクラス修飾子とタイプクラス説明static classprotected static interfacestatic class -
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明protected abstract voidcreateIndexData(int tenantId, String defName) voiddestroy()voiddestroyTenantContext(TenantContext tenantContext) voidexecCrawlEntity(String... defNames) クロール処理を実行する。execFulltextSearch(String searchDefName, String keywords) 全文検索を実行し、検索結果情報を返す。<T extends Entity>
SearchResult<T> fulltextSearchEntity(String searchDefName, String fulltext) 全文検索を実行し、検索結果を返す。<T extends Entity>
SearchResult<T> fulltextSearchEntity(String fulltext, FulltextSearchOption option) 全文検索を実行し、検索結果を返す。<T extends Entity>
SearchResult<T> 全文検索を実行し、検索結果を返す。protected abstract List<IndexedEntity> fulltextSearchImpl(Integer tenantId, EntityHandler eh, String fulltext, int limit) fulltextSearchOidList(String searchDefName, String fulltext) 全文検索を実行し、検索結果のOIDリストを返す。fulltextSearchOidList(List<String> searchDefNames, String fulltext) 全文検索を実行し、対象Entity毎の検索結果OIDリストのMapを返す。getLastCrawlTimestamp(String... defNames) Entityの最終クロール時刻を返す。protected TimestampgetLastCrawlTimestamp(String defId, int version) int検索時の最大検索結果件数を返す。protected List<AbstractFulltextSearchService.RestoreDto> getRestoreIndexData(String defId, Timestamp baseDate) voidvoidinitTenantContext(TenantContext tenantContext) protected voidinsertCrawlLog(String defId, int version, Timestamp sysdate) boolean検索結果が最大件数以上の場合、エラーにするかを返す。boolean全文検索機能が利用可能かを返す。protected <T> List<T> mergeSortByScore(List<T> list1, List<T> list2, int maxSize, AbstractFulltextSearchService.GetScore<T> func) protected voidprotected voidprotected voidremoveDeleteLog(String defId, Timestamp baseDate) protected Stringprotected voidupdateCrawlLog(String defId, int version, Timestamp sysdate) クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitインタフェースから継承されたメソッド org.iplass.mtp.impl.fulltextsearch.FulltextSearchService
deleteAllIndex, execRefresh
-
フィールド詳細
-
redundantTimeMinutes
protected long redundantTimeMinutes
-
-
コンストラクタの詳細
-
AbstractFulltextSearchService
public AbstractFulltextSearchService()
-
-
メソッドの詳細
-
init
-
initTenantContext
- 定義:
initTenantContextインタフェース内FulltextSearchService
-
destroyTenantContext
- 定義:
destroyTenantContextインタフェース内FulltextSearchService
-
destroy
public void destroy() -
isUseFulltextSearch
public boolean isUseFulltextSearch()インタフェースからコピーされた説明:FulltextSearchService全文検索機能が利用可能かを返す。- 定義:
isUseFulltextSearchインタフェース内FulltextSearchService- 戻り値:
- true:利用可能
-
getMaxRows
public int getMaxRows()インタフェースからコピーされた説明:FulltextSearchService検索時の最大検索結果件数を返す。- 定義:
getMaxRowsインタフェース内FulltextSearchService- 戻り値:
- 最大検索結果件数
-
isThrowExceptionWhenOverLimit
public boolean isThrowExceptionWhenOverLimit()インタフェースからコピーされた説明:FulltextSearchService検索結果が最大件数以上の場合、エラーにするかを返す。- 定義:
isThrowExceptionWhenOverLimitインタフェース内FulltextSearchService- 戻り値:
- true: エラー
-
execCrawlEntity
インタフェースからコピーされた説明:FulltextSearchServiceクロール処理を実行する。 Entity定義名が未指定の場合、全Entityを対象にする。- 定義:
execCrawlEntityインタフェース内FulltextSearchService- パラメータ:
defNames- Entity定義名
-
createIndexData
-
toValue
- 例外:
IOException
-
generateCrawlPropMap
-
getLastCrawlTimestamp
インタフェースからコピーされた説明:FulltextSearchServiceEntityの最終クロール時刻を返す。- 定義:
getLastCrawlTimestampインタフェース内FulltextSearchService- パラメータ:
defNames- Entity定義名- 戻り値:
- 最終クロール時刻のMap
-
getLastCrawlTimestamp
-
mergeSortByScore
protected <T> List<T> mergeSortByScore(List<T> list1, List<T> list2, int maxSize, AbstractFulltextSearchService.GetScore<T> func) -
fulltextSearchImpl
protected abstract List<IndexedEntity> fulltextSearchImpl(Integer tenantId, EntityHandler eh, String fulltext, int limit) -
fulltextSearchEntity
public <T extends Entity> SearchResult<T> fulltextSearchEntity(String searchDefName, String fulltext) インタフェースからコピーされた説明:FulltextSearchService全文検索を実行し、検索結果を返す。- 定義:
fulltextSearchEntityインタフェース内FulltextSearchService- パラメータ:
searchDefName- Entity定義名fulltext- キーワード- 戻り値:
- 検索結果のEntityデータリスト
-
fulltextSearchEntity
public <T extends Entity> SearchResult<T> fulltextSearchEntity(Map<String, List<String>> entityProperties, String fulltext) インタフェースからコピーされた説明:FulltextSearchService全文検索を実行し、検索結果を返す。 entityPropertiesのkeyで指定したEntity定義名を検索対象とする。 また返すEntityデータに含まれるPropertyはentityPropertiesのvalueで指定したProperty名のリストを対象とする。- 定義:
fulltextSearchEntityインタフェース内FulltextSearchService- パラメータ:
entityProperties- 対象Entity定義名とプロパティ名のリストをセットにしたMapfulltext- キーワード- 戻り値:
- 検索結果のEntityデータリスト
-
fulltextSearchEntity
public <T extends Entity> SearchResult<T> fulltextSearchEntity(String fulltext, FulltextSearchOption option) インタフェースからコピーされた説明:FulltextSearchService全文検索を実行し、検索結果を返す。 optionのkeyで指定したEntity定義名を検索対象とする。 また返すEntityデータに含まれるPropertyはconditionsのpropertiesで指定したProperty名のリストを対象とする。- 定義:
fulltextSearchEntityインタフェース内FulltextSearchService- パラメータ:
fulltext- キーワードoption- 全文検索時のオプション- 戻り値:
- 検索結果のEntityデータリスト
-
fulltextSearchOidList
インタフェースからコピーされた説明:FulltextSearchService全文検索を実行し、検索結果のOIDリストを返す。- 定義:
fulltextSearchOidListインタフェース内FulltextSearchService- パラメータ:
searchDefName- Entity定義名fulltext- キーワード- 戻り値:
- 検索結果のOIDリスト
-
fulltextSearchOidList
インタフェースからコピーされた説明:FulltextSearchService全文検索を実行し、対象Entity毎の検索結果OIDリストのMapを返す。- 定義:
fulltextSearchOidListインタフェース内FulltextSearchService- パラメータ:
searchDefNames- Entity定義名のリストfulltext- キーワード- 戻り値:
- 対象Entity毎の検索結果OIDリストのMap
-
execFulltextSearch
インタフェースからコピーされた説明:FulltextSearchService全文検索を実行し、検索結果情報を返す。- 定義:
execFulltextSearchインタフェース内FulltextSearchService- パラメータ:
searchDefName- Entity定義名keywords- キーワード- 戻り値:
- 検索結果情報
-
insertCrawlLog
-
updateCrawlLog
-
getRestoreIndexData
protected List<AbstractFulltextSearchService.RestoreDto> getRestoreIndexData(String defId, Timestamp baseDate) -
removeDeleteLog
-
removeAllDeleteLog
protected void removeAllDeleteLog() -
removeAllCrawlLog
protected void removeAllCrawlLog() -
generateCrawlPropInfo
-