インタフェース FulltextSearchService

すべてのスーパーインタフェース:
Service
既知の実装クラスのリスト:
AbstractFulltextSeachService, AbstractFulltextSearchService, LuceneFulltextSearchService

public interface FulltextSearchService extends Service
  • メソッドの詳細

    • isUseFulltextSearch

      boolean isUseFulltextSearch()
      全文検索機能が利用可能かを返す。
      戻り値:
      true:利用可能
    • getMaxRows

      int getMaxRows()
      検索時の最大検索結果件数を返す。
      戻り値:
      最大検索結果件数
    • isThrowExceptionWhenOverLimit

      boolean isThrowExceptionWhenOverLimit()
      検索結果が最大件数以上の場合、エラーにするかを返す。
      戻り値:
      true: エラー
    • execCrawlEntity

      void execCrawlEntity(String... defNames)
      クロール処理を実行する。 Entity定義名が未指定の場合、全Entityを対象にする。
      パラメータ:
      defNames - Entity定義名
    • execRefresh

      void execRefresh()
      リフレッシュ処理を実行する。
    • deleteAllIndex

      void deleteAllIndex()
      テナントの全Indexデータを削除する。
    • getLastCrawlTimestamp

      Map<String,Timestamp> getLastCrawlTimestamp(String... defNames)
      Entityの最終クロール時刻を返す。
      パラメータ:
      defNames - Entity定義名
      戻り値:
      最終クロール時刻のMap
    • fulltextSearchEntity

      <T extends Entity> SearchResult<T> fulltextSearchEntity(String defName, String keyword)
      全文検索を実行し、検索結果を返す。
      パラメータ:
      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定義名とプロパティ名のリストをセットにしたMap
      keyword - キーワード
      戻り値:
      検索結果のEntityデータリスト
    • fulltextSearchEntity

      <T extends Entity> SearchResult<T> fulltextSearchEntity(String keyword, FulltextSearchOption option)
      全文検索を実行し、検索結果を返す。 optionのkeyで指定したEntity定義名を検索対象とする。 また返すEntityデータに含まれるPropertyはconditionsのpropertiesで指定したProperty名のリストを対象とする。
      パラメータ:
      keyword - キーワード
      option - 全文検索時のオプション
      戻り値:
      検索結果のEntityデータリスト
    • fulltextSearchOidList

      List<String> fulltextSearchOidList(String defName, String keyword)
      全文検索を実行し、検索結果のOIDリストを返す。
      パラメータ:
      defName - Entity定義名
      keyword - キーワード
      戻り値:
      検索結果のOIDリスト
    • fulltextSearchOidList

      Map<String,List<String>> fulltextSearchOidList(List<String> defNames, String keyword)
      全文検索を実行し、対象Entity毎の検索結果OIDリストのMapを返す。
      パラメータ:
      defNames - Entity定義名のリスト
      keyword - キーワード
      戻り値:
      対象Entity毎の検索結果OIDリストのMap
    • execFulltextSearch

      List<FulltextSearchResult> execFulltextSearch(String defName, String keyword)
      全文検索を実行し、検索結果情報を返す。
      パラメータ:
      defName - Entity定義名
      keyword - キーワード
      戻り値:
      検索結果情報
    • initTenantContext

      void initTenantContext(TenantContext tenantContext)
    • destroyTenantContext

      void destroyTenantContext(TenantContext tenantContext)