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) voidinit()voidregister(RankFusionSearcher searcher) search(String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) searchWithMainSearcher(String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) searchWithMultipleSearchers(String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) voidsetSeacher(RankFusionSearcher searcher) protected float
-
Field Details
-
searchers
-
executorService
-
windowSize
protected int windowSize
-
-
Constructor Details
-
RankFusionProcessor
public RankFusionProcessor()
-
-
Method Details
-
init
@PostConstruct public void init() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
search
public List<Map<String,Object>> search(String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) -
searchWithMultipleSearchers
protected List<Map<String,Object>> searchWithMultipleSearchers(String query, SearchRequestParams params, org.dbflute.optional.OptionalThing<FessUserBean> userBean) -
extractList
-
searchWithMainSearcher
protected List<Map<String,Object>> searchWithMainSearcher(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
-