Example #1
0
        /// <summary>Parse view query from provided URI.</summary>
        public static LuceneQuery Parse(string uriString)
        {
            LuceneQuery viewQuery;

            if (!LuceneQueryUriConverter.TryParse(uriString, out viewQuery))
            {
                throw new ParseException("Error parsing couchdb-lucene index query URI string: {0}", uriString);
            }
            return(viewQuery);
        }
Example #2
0
 /// <summary>Attemps to parse view query from provided URI string.</summary>
 public static bool TryParse(string uriString, out LuceneQuery viewQuery)
 {
     return(LuceneQueryUriConverter.TryParse(uriString, out viewQuery));
 }