インタフェース FulltextSearchService
- すべてのスーパーインタフェース:
Service
- 既知の実装クラスのリスト:
AbstractFulltextSeachService,AbstractFulltextSearchService,LuceneFulltextSearchService
-
メソッドの概要
修飾子とタイプメソッド説明voidテナントの全Indexデータを削除する。voiddestroyTenantContext(TenantContext tenantContext) voidexecCrawlEntity(String... defNames) クロール処理を実行する。execFulltextSearch(String defName, String keyword) 全文検索を実行し、検索結果情報を返す。voidリフレッシュ処理を実行する。<T extends Entity>
SearchResult<T> fulltextSearchEntity(String defName, String keyword) 全文検索を実行し、検索結果を返す。<T extends Entity>
SearchResult<T> fulltextSearchEntity(String keyword, FulltextSearchOption option) 全文検索を実行し、検索結果を返す。<T extends Entity>
SearchResult<T> 全文検索を実行し、検索結果を返す。fulltextSearchOidList(String defName, String keyword) 全文検索を実行し、検索結果のOIDリストを返す。fulltextSearchOidList(List<String> defNames, String keyword) 全文検索を実行し、対象Entity毎の検索結果OIDリストのMapを返す。getLastCrawlTimestamp(String... defNames) Entityの最終クロール時刻を返す。int検索時の最大検索結果件数を返す。voidinitTenantContext(TenantContext tenantContext) boolean検索結果が最大件数以上の場合、エラーにするかを返す。boolean全文検索機能が利用可能かを返す。
-
メソッドの詳細
-
isUseFulltextSearch
boolean isUseFulltextSearch()全文検索機能が利用可能かを返す。- 戻り値:
- true:利用可能
-
getMaxRows
int getMaxRows()検索時の最大検索結果件数を返す。- 戻り値:
- 最大検索結果件数
-
isThrowExceptionWhenOverLimit
boolean isThrowExceptionWhenOverLimit()検索結果が最大件数以上の場合、エラーにするかを返す。- 戻り値:
- true: エラー
-
execCrawlEntity
クロール処理を実行する。 Entity定義名が未指定の場合、全Entityを対象にする。- パラメータ:
defNames- Entity定義名
-
execRefresh
void execRefresh()リフレッシュ処理を実行する。 -
deleteAllIndex
void deleteAllIndex()テナントの全Indexデータを削除する。 -
getLastCrawlTimestamp
Entityの最終クロール時刻を返す。- パラメータ:
defNames- Entity定義名- 戻り値:
- 最終クロール時刻のMap
-
fulltextSearchEntity
全文検索を実行し、検索結果を返す。- パラメータ:
defName- Entity定義名keyword- キーワード- 戻り値:
- 検索結果のEntityデータリスト
-
fulltextSearchEntity
<T extends Entity> SearchResult<T> fulltextSearchEntity(Map<String, List<String>> entityProperties, String keyword) 全文検索を実行し、検索結果を返す。 entityPropertiesのkeyで指定したEntity定義名を検索対象とする。 また返すEntityデータに含まれるPropertyはentityPropertiesのvalueで指定したProperty名のリストを対象とする。- パラメータ:
entityProperties- 対象Entity定義名とプロパティ名のリストをセットにしたMapkeyword- キーワード- 戻り値:
- 検索結果のEntityデータリスト
-
fulltextSearchEntity
<T extends Entity> SearchResult<T> fulltextSearchEntity(String keyword, FulltextSearchOption option) 全文検索を実行し、検索結果を返す。 optionのkeyで指定したEntity定義名を検索対象とする。 また返すEntityデータに含まれるPropertyはconditionsのpropertiesで指定したProperty名のリストを対象とする。- パラメータ:
keyword- キーワードoption- 全文検索時のオプション- 戻り値:
- 検索結果のEntityデータリスト
-
fulltextSearchOidList
全文検索を実行し、検索結果のOIDリストを返す。- パラメータ:
defName- Entity定義名keyword- キーワード- 戻り値:
- 検索結果のOIDリスト
-
fulltextSearchOidList
全文検索を実行し、対象Entity毎の検索結果OIDリストのMapを返す。- パラメータ:
defNames- Entity定義名のリストkeyword- キーワード- 戻り値:
- 対象Entity毎の検索結果OIDリストのMap
-
execFulltextSearch
全文検索を実行し、検索結果情報を返す。- パラメータ:
defName- Entity定義名keyword- キーワード- 戻り値:
- 検索結果情報
-
initTenantContext
-
destroyTenantContext
-