Exemple #1
0
        /// <summary>
        /// Perform a Lambda-syntax query
        /// </summary>
        /// <param name="queryString">The query string, in LIKQ syntax.</param>
        /// <param name="getEdgeType">Get edge types, and interleave nodes and edge type arrays in the query result.</param>
        /// <returns>A json string representing query results.</returns>
        /// <exception cref="FanoutSearchQueryException">Throws if the query string is invalid.</exception>
        /// <exception cref="FanoutSearchQueryTimeoutException">Throws if the query timed out, and the server is set to not respond with partial result.</exception>"
        public string LambdaQuery(string queryString, bool getEdgeType = false)
        {
            FanoutSearchDescriptor query_object;

            query_object = LambdaDSL.Evaluate(queryString);

            return(PathsToJsonArray(query_object, getEdgeType));
        }
 private static FanoutSearchDescriptor _LambdaQuery_impl(string lambda)
 {
     Log.WriteLine(LogLevel.Debug, "{0}", $"Lambda query: {lambda}");
     try
     {
         return(LambdaDSL.Evaluate(lambda));
     }
     catch (Exception ex)
     {
         throw new FanoutSearchQueryException("Error parsing the lambda query object", ex);
     }
 }
 private static FanoutSearchDescriptor _LambdaQuery_impl(string lambda)
 {
     Log.WriteLine(LogLevel.Debug, "{0}", $"Lambda query: {lambda}");
     return(LambdaDSL.Evaluate(lambda));
 }
Exemple #4
0
 private static FanoutSearchDescriptor _LambdaQuery_impl(string lambda)
 {
     return(LambdaDSL.Evaluate(lambda));
 }