public static SearchFilter SubQueryCondition(ResourceId resource, string fieldName, string operatorText) { return(new SearchFilter { Field = new SearchField($"{resource}.{fieldName}"), SearchType = SearchRequestComposer.SearchTypeMap[SearchFilterType.Subquery], Operator = SearchRequestComposer.OperatorTypeMap[OperatorType.In], Value = SearchValue.CreateSubquery(resource, $"{resource}.P_Id", SearchFilter.CreateText($"{resource}.{fieldName}", operatorText, "Test", null)) }); }
public SearchRequest TextFilter(string fieldName, OperatorType op, string lang, string value) { _request.Conditions.Filter = SearchFilter.CreateText(fieldName, OperatorTypeMap[op], value, lang); return(_request); }