Example #1
0
        public static Query MakeQuery(string q, NuGetSearcherManager searcherManager)
        {
            Query query        = LuceneQueryCreator.Parse(q, false);
            Query boostedQuery = new RankingScoreQuery(query, searcherManager.GetRankings());

            return(boostedQuery);
        }
 public static string Search(PackageSearcherManager searcherManager, string q, bool countOnly, string projectType, bool includePrerelease, string feed, string sortBy, int skip, int take, bool includeExplanation, bool ignoreFilter)
 {
     return(Search(
                searcherManager,
                LuceneQueryCreator.Parse(q, true),
                countOnly,
                projectType,
                includePrerelease,
                feed,
                sortBy,
                skip,
                take,
                includeExplanation,
                ignoreFilter));
 }
        public static Query MakeQuery(string q)
        {
            Query query = LuceneQueryCreator.Parse(q, false);

            return(query);
        }