Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
采用策略模式的多路召回框架和es召回策略实现,策略模式横向扩展召回路数,组合容器收集召回结果,并在内部实现粗筛,解耦召回与粗筛逻辑。
src/main/java/com/search/docsearch/multirecall/recall/MultiSearchContext.java 多路召回上下文,执行已经注册的召回策略,并以容器返回结果
src/main/java/com/search/docsearch/multirecall/recall/SearchStrategy.java 召回策略接口类
src/main/java/com/search/docsearch/multirecall/recall/cstrategy/EsSearchStrategy.java es召回具体实现
src/main/java/com/search/docsearch/multirecall/recall/cstrategy/GSearchStrategy.java google召回具体实现(待补充)
src/test/java/com/search/docsearch/EsSearchStrategyTest.java es召回测试类
src/test/java/com/search/docsearch/SearchContextTest.java 召回上下文测试类
src/test/java/com/search/docsearch/strategy/ErrorSearchStrategy.java 错误召回测试类,返回null结果,用于测试n路召回中任意一路召回失败时场景
src/test/java/com/search/docsearch/strategy/TestSearchStrategy.java 正常召回测试类,正常返回结果