Package org.codelibs.fess.helper
Class KeyMatchHelper
- java.lang.Object
-
- org.codelibs.fess.helper.KeyMatchHelper
-
public class KeyMatchHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Map<String,org.codelibs.core.misc.Pair<org.elasticsearch.index.query.QueryBuilder,org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<?>>>>keyMatchQueryMapprotected longreloadInterval
-
Constructor Summary
Constructors Constructor Description KeyMatchHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildQuery(List<String> keywordList, List<org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder.FilterFunctionBuilder> list)List<KeyMatch>getAvailableKeyMatchList()List<Map<String,Object>>getBoostedDocumentList(String term, int size)protected List<Map<String,Object>>getDocumentList(KeyMatch keyMatch)protected Map<String,org.codelibs.core.misc.Pair<org.elasticsearch.index.query.QueryBuilder,org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<?>>>getQueryMap()longgetReloadInterval()voidinit()protected voidreload(long interval)voidsetReloadInterval(long reloadInterval)voidupdate()
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
update
public void update()
-
reload
protected void reload(long interval)
-
getReloadInterval
public long getReloadInterval()
-
setReloadInterval
public void setReloadInterval(long reloadInterval)
-
getQueryMap
protected Map<String,org.codelibs.core.misc.Pair<org.elasticsearch.index.query.QueryBuilder,org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<?>>> getQueryMap()
-
buildQuery
public void buildQuery(List<String> keywordList, List<org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder.FilterFunctionBuilder> list)
-
-