Ejemplo n.º 1
0
 public SearchResult <T> Search(string q, Expression <Func <T, bool> > filter, SearchParameters searchParameters)
 {
     if (typeof(T).Equals(typeof(Contact)) && searchParameters != null)
     {
         return(new ContactSearch <T>(searchParameters.AccountId)
                .SearchContacts(q, filter, searchParameters));
     }
     else
     {
         return(new SearchBase <T>(searchParameters.AccountId).Search(q, filter, searchParameters));
     }
 }
Ejemplo n.º 2
0
 public SearchResult <Suggestion> QuickSearch(string q, SearchParameters searchParameters)
 {
     return(new SearchBase <T>(searchParameters.AccountId).QuickSearch(q, searchParameters));
 }
Ejemplo n.º 3
0
 public IEnumerable <string> CheckSuppressionList(SearchParameters p)
 {
     return(new SearchBase <T>(p.AccountId).CheckSuppressionList(p));
 }
Ejemplo n.º 4
0
 public IEnumerable <T> SearchSuppressionList(string queryString, SearchParameters p)
 {
     return(new SearchBase <T>(p.AccountId).SearchSuppressionList(queryString, p));
 }
Ejemplo n.º 5
0
 public IEnumerable <QueryMatch> FindMatchingQueries(IEnumerable <T> documents, SearchParameters searchParameters)
 {
     if (typeof(T).Equals(typeof(Contact)))
     {
         return(new ContactSearch <T>(searchParameters.AccountId).FindMatchingQueries(documents));
     }
     else
     {
         throw new NotImplementedException("This type of document is not indexed:" + typeof(T).ToString());
     }
 }
Ejemplo n.º 6
0
 public SavedSearchActiveContacts GetAggregationBySavedSearch(SearchDefinition searchDefinition, SearchParameters parameters)
 {
     return(new ContactSearch <T>(searchDefinition.AccountID.Value).GetAggregationBySavedSearch(searchDefinition, parameters));
 }
Ejemplo n.º 7
0
 public IDictionary <int, long> GetTopLeadSources(SearchDefinition searchDefinition, SearchParameters parameters)
 {
     return(new ContactSearch <T>(searchDefinition.AccountID.Value).GetTopLeadSources(searchDefinition, parameters));
 }
Ejemplo n.º 8
0
 public IDictionary <DateTime, long> GetContactsAggregationByDate(SearchDefinition searchDefinition, SearchParameters parameters)
 {
     return(new ContactSearch <T>(searchDefinition.AccountID.Value).GetContactsAggregationByDate(searchDefinition, parameters));
 }
Ejemplo n.º 9
0
 public Task <SearchResult <T> > AdvancedSearchExportAsync(string q, SearchDefinition searchDefinition, SearchParameters searchParameters)
 {
     return(new ContactSearch <T>(searchDefinition.AccountID.Value).AdvancedSearchExportAsync(q, searchDefinition, searchParameters));
 }