private IEnumerable<CardCriterion> GetSearchResultBasedOnSearchType() { _luceneSearch = new LuceneSearch(_criteriaList); if (_isLuceneSyntax) return _luceneSearch.SearchWithLuceneSyntax(); else return _luceneSearch.SearchNoLuceneSyntax(); }
public QueryMaker(Analyzer analyzer, LuceneSearch luceneSearch, List<KeyValuePair<string, object>> searchCriterion) { _analyzer = analyzer; _luceneSearch = luceneSearch; _searchCriterion = searchCriterion; _kvpMax = searchCriterion.First(kvp => kvp.Key.Equals("CardAdoptionDateMax")); _kvpMin = searchCriterion.FirstOrDefault(kvp => kvp.Key == "CardAdoptionDateMin"); }