コード例 #1
0
        public static Query MakeQuery(string q, OwnersResult owners)
        {
            var queryParser = new NuGetQueryParser();
            var grouping = queryParser.ParseQuery(q);

            if (grouping.Count == 0)
            {
                return new MatchAllDocsQuery();
            }

            return ConstructQuery(grouping, owners);
        }
コード例 #2
0
        public static Query MakeQuery(string q, OwnersResult owners)
        {
            var queryParser = new NuGetQueryParser();
            var grouping    = queryParser.ParseQuery(q);

            if (grouping.Count == 0)
            {
                return(new MatchAllDocsQuery());
            }

            return(ConstructQuery(grouping, owners));
        }