Package org.codelibs.fess.rank.fusion
Class RankFusionProcessor
java.lang.Object
org.codelibs.fess.rank.fusion.RankFusionProcessor
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExecutorServiceprotected RankFusionSearcher[]protected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected QueryResponseListcreateResponseList(List<Map<String, Object>> documentList, long allRecordCount, String allRecordCountRelation, long queryTime, boolean partialResults, FacetResponse facetResponse, int start, int pageSize, int offset) extractList(List<Map<String, Object>> docs, int pageSize, int startPosition) protected RankFusionSearcher[]voidinit()protected voidload()voidregister(RankFusionSearcher searcher) search(String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) searchWithMainSearcher(RankFusionSearcher searcher, String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) searchWithMultipleSearchers(RankFusionSearcher[] searchers, String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) voidsetSeacher(RankFusionSearcher searcher) protected floatvoidupdate()
-
Field Details
-
searchers
-
executorService
-
windowSize
protected int windowSize -
availableSearcherNameSet
-
-
Constructor Details
-
RankFusionProcessor
public RankFusionProcessor()
-
-
Method Details
-
init
@PostConstruct public void init() -
update
public void update() -
load
protected void load() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
search
public List<Map<String,Object>> search(String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) -
getAvailableSearchers
-
searchWithMultipleSearchers
protected List<Map<String,Object>> searchWithMultipleSearchers(RankFusionSearcher[] searchers, String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) -
extractList
-
searchWithMainSearcher
protected List<Map<String,Object>> searchWithMainSearcher(RankFusionSearcher searcher, String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) -
createResponseList
protected QueryResponseList createResponseList(List<Map<String, Object>> documentList, long allRecordCount, String allRecordCountRelation, long queryTime, boolean partialResults, FacetResponse facetResponse, int start, int pageSize, int offset) -
toFloat
-
setSeacher
-
register
-