Class KeyMatchHelper


  • public class KeyMatchHelper
    extends Object
    • Field Detail

      • keyMatchQueryMap

        protected volatile Map<String,​Map<String,​org.codelibs.core.misc.Pair<org.elasticsearch.index.query.QueryBuilder,​org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<?>>>> keyMatchQueryMap
      • reloadInterval

        protected long reloadInterval
    • Constructor Detail

      • KeyMatchHelper

        public KeyMatchHelper()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • update

        public void update()
      • getAvailableKeyMatchList

        public List<KeyMatch> getAvailableKeyMatchList()
      • 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)