private static void DoQuery(IIndexReader<int, string, string> index, string queryText, IInverter<string, string> inverter) { Console.Out.WriteLine("=== graph for " + queryText + "==="); var results = index.ExecuteQuery(queryText, inverter); Console.Out.WriteLine("=== results for: " + queryText + " ==="); foreach (var result in results) { Console.Out.WriteLine("doc: {0}, text: {1}", result.Id, result.Value); } }