@@ -112,10 +112,10 @@ public async Task<SearchResult<ProviderDto>> GetByFilter(ProviderFilter filter)
112112 . Get (
113113 skip : filter . From ,
114114 take : filter . Size ,
115- includeProperties : "ActualAddress,LegalAddress,Institution,ProviderSectionItems,Images" ,
115+ includeProperties : string . Empty ,
116116 where : filterPredicate ,
117117 orderBy : sortExpression ,
118- asNoTracking : true )
118+ asNoTracking : false )
119119 . ToListAsync ( )
120120 . ConfigureAwait ( false ) ;
121121
@@ -548,11 +548,11 @@ private Expression<Func<Provider, bool>> PredicateBuild(ProviderFilter filter)
548548 foreach ( var word in filter . SearchString . Split ( ' ' , ',' , StringSplitOptions . RemoveEmptyEntries ) )
549549 {
550550 tempPredicate = tempPredicate . Or (
551- x => x . User . FirstName . StartsWith ( word , StringComparison . InvariantCultureIgnoreCase )
552- || x . User . LastName . StartsWith ( word , StringComparison . InvariantCultureIgnoreCase )
553- || x . User . MiddleName . StartsWith ( word , StringComparison . InvariantCultureIgnoreCase )
554- || x . Email . StartsWith ( word , StringComparison . InvariantCultureIgnoreCase )
555- || x . PhoneNumber . Contains ( word , StringComparison . InvariantCulture ) ) ;
551+ x => x . FullTitle . Contains ( word , StringComparison . InvariantCultureIgnoreCase )
552+ || x . ShortTitle . Contains ( word , StringComparison . InvariantCultureIgnoreCase )
553+ || x . ActualAddress . City . StartsWith ( word , StringComparison . InvariantCultureIgnoreCase )
554+ || x . LegalAddress . City . StartsWith ( word , StringComparison . InvariantCulture )
555+ || x . EdrpouIpn . ToString ( ) . StartsWith ( word , StringComparison . InvariantCultureIgnoreCase ) ) ;
556556 }
557557
558558 predicate = predicate . And ( tempPredicate ) ;
0 commit comments