public final class ContentsSearchManager extends Object
コンストラクタと説明 |
---|
ContentsSearchManager()
標準の検索サーバグループ名で全文検索用マネージャの初期化を行います。
|
ContentsSearchManager(String groupName)
与えられた検索サーバグループ名で全文検索用マネージャの初期化を行います。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
add(Collection<? extends InputContent> contents)
与えられた登録用コンテンツを追加します。
|
void |
add(InputContent... contents)
与えられた登録用コンテンツを登録します。
|
void |
commit()
コンテンツの登録および削除した内容を確定し、検索結果に反映します。
|
void |
delete(Searchable condition)
与えられた検索条件に該当するコンテンツを削除します。
|
void |
deleteAll()
登録済みのコンテンツをすべて削除します。
|
void |
deleteByType(String type)
与えられたコンテンツタイプに該当するコンテンツをすべて削除します。
|
protected SearchService |
getSearchService()
検索用サービスを取得します。
|
protected UpdateService |
getUpdateService()
登録用サービスを取得します。
|
SearchResponse |
search(Query query)
与えられた検索クエリで検索処理を行います。
|
public ContentsSearchManager()
public ContentsSearchManager(String groupName)
groupName
- 検索サーバグループ名protected SearchService getSearchService() throws ContentsSearchExecutionException
ContentsSearchExecutionException
- 検索サービスの取得に失敗した場合。protected UpdateService getUpdateService() throws ContentsSearchExecutionException
ContentsSearchExecutionException
- 検索サービスの取得に失敗した場合。public SearchResponse search(Query query) throws ContentsSearchExecutionException, InvalidSearchConditionException
query
- クエリContentsSearchExecutionException
- 検索処理に失敗した場合InvalidSearchConditionException
- 不正な検索条件が与えられた場合public void add(InputContent... contents) throws ContentsSearchExecutionException
commit()
を行うまで更新したコンテンツは検索に反映されません。contents
- 登録用コンテンツContentsSearchExecutionException
- 登録処理に失敗した場合NullPointerException
- 指定された登録用コンテンツが null である場合public void add(Collection<? extends InputContent> contents) throws ContentsSearchExecutionException
commit()
を行うまで更新したコンテンツは検索に反映されません。contents
- 登録用コンテンツのコレクションContentsSearchExecutionException
- 登録処理に失敗した場合NullPointerException
- 指定された登録用コンテンツが null である場合public void delete(Searchable condition) throws ContentsSearchExecutionException, InvalidSearchConditionException
commit()
を行うまで更新したコンテンツは検索に反映されません。condition
- 検索条件ContentsSearchExecutionException
- 削除処理に失敗した場合InvalidSearchConditionException
- 不正な検索条件が与えられた場合public void deleteAll() throws ContentsSearchExecutionException
commit()
を行うまで更新したコンテンツは検索に反映されません。ContentsSearchExecutionException
- 削除処理に失敗した場合public void deleteByType(String type) throws ContentsSearchExecutionException
type
- コンテンツタイプContentsSearchExecutionException
- 削除処理に失敗した場合NullPointerException
- 指定されたコンテンツタイプが null である場合public void commit() throws ContentsSearchExecutionException
ContentsSearchExecutionException
- 確定処理に失敗した場合Copyright © 2012 NTT DATA INTRAMART CORPORATION