namespace OASystem.API.OAMethodLib.GenericSearch
{
///
/// 动态搜索请求
///
public class DynamicSearchRequest
{
///
/// 搜索关键词
///
public string Keyword { get; set; }
///
/// 字段权重配置(字段名:权重值)
///
public Dictionary FieldWeights { get; set; } = new Dictionary();
///
/// 返回字段列表(为空则返回所有字段)
///
public List ReturnFields { get; set; } = new List();
///
/// 过滤条件
///
public List Filters { get; set; } = new List();
///
/// 排序字段
///
public string OrderBy { get; set; }
///
/// 是否降序排序
///
public bool IsDescending { get; set; } = true;
///
/// 页码(从1开始)
///
public int PageIndex { get; set; } = 1;
///
/// 页大小
///
public int PageSize { get; set; } = 20;
///
/// 是否要求所有单字必须完全出现(新增参数)
///
public bool RequireAllSingleChars { get; set; } = false;
}
///
/// 搜索过滤器
///
public class SearchFilter
{
///
/// 字段名
///
public string Field { get; set; }
///
/// 操作符(eq, neq, contains, startswith, endswith, gt, gte, lt, lte, in)
///
public string Operator { get; set; }
///
/// 字段值
///
public object Value { get; set; }
///
/// 字段值列表(用于IN操作)
///
public List