Exemplo n.º 1
0
        public static SearchResults Search(string indexScope, Select selectQuery)
        {
            var def = new SelectQueryDefinition();

            def.Build(selectQuery);

            var results = LuceneController.Instance.Search(indexScope, def.Filter, def.Query, def.Sort, def.PageSize, def.PageIndex);

            results.ResultDefinition = new ResultDefinition()
            {
                Filter    = def.Filter.ToString(),
                Query     = def.Query.ToString(),
                Sort      = def.Sort.ToString(),
                PageIndex = def.PageIndex,
                PageSize  = def.PageSize
            };
            return(results);
        }
Exemplo n.º 2
0
 public SearchResults Search(string type, SelectQueryDefinition def)
 {
     return(Search(type, def.Filter, def.Query, def.Sort, def.PageSize, def.PageIndex));
 }