IRecallRequest.java
801 Bytes
package com.yoho.search.models.recall;
import com.yoho.search.base.constants.ProductIndexEsField;
import com.yoho.search.core.es.model.SearchParam;
import com.yoho.search.service.recall.strategy.IStrategy;
import java.util.Arrays;
import java.util.List;
public interface IRecallRequest {
/**
* 查询类型
* @return
*/
IStrategy strategy();
/**
* 真实的查询参数
* @return
*/
SearchParam searchParam();
/**
* 请求返回的字段
* @return
*/
default List<String> includeFields(){
return Arrays.asList(ProductIndexEsField.productSkn,ProductIndexEsField.brandId,ProductIndexEsField.middleSortId,ProductIndexEsField.productFeatureFactor,ProductIndexEsField.priceArea);
}
}