public class KeyMatchHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Map<String,org.codelibs.core.misc.Pair<org.elasticsearch.index.query.QueryBuilder,org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<?>>>> |
keyMatchQueryMap |
protected long |
reloadInterval |
| Constructor and Description |
|---|
KeyMatchHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildQuery(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() |
long |
getReloadInterval() |
void |
init() |
protected void |
reload(long interval) |
void |
setReloadInterval(long reloadInterval) |
void |
update() |
protected volatile Map<String,Map<String,org.codelibs.core.misc.Pair<org.elasticsearch.index.query.QueryBuilder,org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<?>>>> keyMatchQueryMap
protected long reloadInterval
@PostConstruct public void init()
public void update()
protected void reload(long interval)
public long getReloadInterval()
public void setReloadInterval(long reloadInterval)
protected Map<String,org.codelibs.core.misc.Pair<org.elasticsearch.index.query.QueryBuilder,org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<?>>> getQueryMap()
public void buildQuery(List<String> keywordList, List<org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilder.FilterFunctionBuilder> list)
Copyright © 2009–2017 CodeLibs. All rights reserved.