示例#1
0
 private IEnumerable<CardCriterion> GetSearchResultBasedOnSearchType()
 {
     _luceneSearch = new LuceneSearch(_criteriaList);
     if (_isLuceneSyntax)
         return _luceneSearch.SearchWithLuceneSyntax();
     else
         return _luceneSearch.SearchNoLuceneSyntax();
 }
示例#2
0
        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");
        }