public abstract class AbstractFulltextSearchService extends java.lang.Object implements FulltextSearchService
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
AbstractFulltextSearchService.CrawlTimestampDto |
protected static interface |
AbstractFulltextSearchService.GetScore<T> |
static class |
AbstractFulltextSearchService.RestoreDto |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected long |
redundantTimeMinutes |
| コンストラクタと説明 |
|---|
AbstractFulltextSearchService() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected abstract void |
createIndexData(int tenantId,
java.lang.String defName) |
void |
destroy() |
void |
destroyTenantContext(TenantContext tenantContext) |
void |
execCrawlEntity(java.lang.String... defNames)
クロール処理を実行する。
|
java.util.List<FulltextSearchResult> |
execFulltextSearch(java.lang.String searchDefName,
java.lang.String keywords)
全文検索を実行し、検索結果情報を返す。
|
<T extends Entity> |
fulltextSearchEntity(java.util.Map<java.lang.String,java.util.List<java.lang.String>> entityProperties,
java.lang.String fulltext)
全文検索を実行し、検索結果を返す。
|
<T extends Entity> |
fulltextSearchEntity(java.lang.String fulltext,
FulltextSearchOption option)
全文検索を実行し、検索結果を返す。
|
<T extends Entity> |
fulltextSearchEntity(java.lang.String searchDefName,
java.lang.String fulltext)
全文検索を実行し、検索結果を返す。
|
protected abstract java.util.List<IndexedEntity> |
fulltextSearchImpl(java.lang.Integer tenantId,
EntityHandler eh,
java.lang.String fulltext,
int limit) |
java.util.List<java.lang.String> |
fulltextSearchOidList(java.lang.String searchDefName,
java.lang.String fulltext)
全文検索を実行し、検索結果のOIDリストを返す。
|
protected java.util.Map<java.lang.String,java.lang.String> |
generateCrawlPropInfo(MetaEntity meta) |
protected java.util.Map<java.lang.String,java.lang.String> |
generateCrawlPropMap(MetaEntity meta) |
java.util.Map<java.lang.String,java.sql.Timestamp> |
getLastCrawlTimestamp(java.lang.String... defNames)
Entityの最終クロール時刻を返す。
|
protected java.sql.Timestamp |
getLastCrawlTimestamp(java.lang.String defId,
int version) |
int |
getMaxRows()
検索時の最大検索結果件数を返す。
|
protected java.util.List<AbstractFulltextSearchService.RestoreDto> |
getRestoreIndexData(java.lang.String defId,
java.sql.Timestamp baseDate) |
void |
init(Config config) |
void |
initTenantContext(TenantContext tenantContext) |
protected void |
insertCrawlLog(java.lang.String defId,
int version,
java.sql.Timestamp sysdate) |
boolean |
isThrowExceptionWhenOverLimit()
検索結果が最大件数以上の場合、エラーにするかを返す。
|
boolean |
isUseFulltextSearch()
全文検索機能が利用可能かを返す。
|
protected <T> java.util.List<T> |
mergeSortByScore(java.util.List<T> list1,
java.util.List<T> list2,
int maxSize,
AbstractFulltextSearchService.GetScore<T> func) |
protected void |
removeAllCrawlLog() |
protected void |
removeAllDeleteLog() |
protected void |
removeDeleteLog(java.lang.String defId,
java.sql.Timestamp baseDate) |
protected java.lang.String |
toValue(java.lang.Object val) |
protected void |
updateCrawlLog(java.lang.String defId,
int version,
java.sql.Timestamp sysdate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteAllIndex, execRefreshpublic void initTenantContext(TenantContext tenantContext)
initTenantContext インタフェース内 FulltextSearchServicepublic void destroyTenantContext(TenantContext tenantContext)
destroyTenantContext インタフェース内 FulltextSearchServicepublic boolean isUseFulltextSearch()
FulltextSearchServiceisUseFulltextSearch インタフェース内 FulltextSearchServicepublic int getMaxRows()
FulltextSearchServicegetMaxRows インタフェース内 FulltextSearchServicepublic boolean isThrowExceptionWhenOverLimit()
FulltextSearchServiceisThrowExceptionWhenOverLimit インタフェース内 FulltextSearchServicepublic void execCrawlEntity(java.lang.String... defNames)
FulltextSearchServiceexecCrawlEntity インタフェース内 FulltextSearchServicedefNames - Entity定義名protected abstract void createIndexData(int tenantId,
java.lang.String defName)
protected java.lang.String toValue(java.lang.Object val)
throws java.io.IOException
java.io.IOExceptionprotected java.util.Map<java.lang.String,java.lang.String> generateCrawlPropMap(MetaEntity meta)
public java.util.Map<java.lang.String,java.sql.Timestamp> getLastCrawlTimestamp(java.lang.String... defNames)
FulltextSearchServicegetLastCrawlTimestamp インタフェース内 FulltextSearchServicedefNames - Entity定義名protected java.sql.Timestamp getLastCrawlTimestamp(java.lang.String defId,
int version)
protected <T> java.util.List<T> mergeSortByScore(java.util.List<T> list1,
java.util.List<T> list2,
int maxSize,
AbstractFulltextSearchService.GetScore<T> func)
protected abstract java.util.List<IndexedEntity> fulltextSearchImpl(java.lang.Integer tenantId, EntityHandler eh, java.lang.String fulltext, int limit)
public <T extends Entity> SearchResult<T> fulltextSearchEntity(java.lang.String searchDefName, java.lang.String fulltext)
FulltextSearchServicefulltextSearchEntity インタフェース内 FulltextSearchServicesearchDefName - Entity定義名fulltext - キーワードpublic <T extends Entity> SearchResult<T> fulltextSearchEntity(java.util.Map<java.lang.String,java.util.List<java.lang.String>> entityProperties, java.lang.String fulltext)
FulltextSearchServicefulltextSearchEntity インタフェース内 FulltextSearchServiceentityProperties - 対象Entity定義名とプロパティ名のリストをセットにしたMapfulltext - キーワードpublic <T extends Entity> SearchResult<T> fulltextSearchEntity(java.lang.String fulltext, FulltextSearchOption option)
FulltextSearchServicefulltextSearchEntity インタフェース内 FulltextSearchServicefulltext - キーワードoption - 全文検索時のオプションpublic java.util.List<java.lang.String> fulltextSearchOidList(java.lang.String searchDefName,
java.lang.String fulltext)
FulltextSearchServicefulltextSearchOidList インタフェース内 FulltextSearchServicesearchDefName - Entity定義名fulltext - キーワードpublic java.util.List<FulltextSearchResult> execFulltextSearch(java.lang.String searchDefName, java.lang.String keywords)
FulltextSearchServiceexecFulltextSearch インタフェース内 FulltextSearchServicesearchDefName - Entity定義名keywords - キーワードprotected void insertCrawlLog(java.lang.String defId,
int version,
java.sql.Timestamp sysdate)
protected void updateCrawlLog(java.lang.String defId,
int version,
java.sql.Timestamp sysdate)
protected java.util.List<AbstractFulltextSearchService.RestoreDto> getRestoreIndexData(java.lang.String defId, java.sql.Timestamp baseDate)
protected void removeDeleteLog(java.lang.String defId,
java.sql.Timestamp baseDate)
protected void removeAllDeleteLog()
protected void removeAllCrawlLog()
protected java.util.Map<java.lang.String,java.lang.String> generateCrawlPropInfo(MetaEntity meta)