Ejemplo n.º 1
0
 private static void PrintIndexResult(IndexResult indexResult)
 {
     Console.WriteLine("Index Results:");
     Console.WriteLine(" _index: " + indexResult._index);
     Console.WriteLine(" _type: " + indexResult._type);
     Console.WriteLine(" _id: " + indexResult._id);
     Console.WriteLine(" _version: " + indexResult._version);
     Console.WriteLine();
 }
Ejemplo n.º 2
0
        private static void PrintIndexCommand(OperationResult result, IndexResult indexResult, string indexCommand, string data)
        {
            Console.WriteLine("Executed: PUT \r\n{0} \r\n{1} \r\n".F(indexCommand, data ));

            Console.WriteLine("Index Results \r\n{0} \r\n".F(result));

            Console.WriteLine("Parsed Index Results");
            Console.WriteLine(" ok: " + indexResult.ok);
            Console.WriteLine(" _index: " + indexResult._index);
            Console.WriteLine(" _type: " + indexResult._type);
            Console.WriteLine(" _id: " + indexResult._id);
            Console.WriteLine(" _version: " + indexResult._version);
            Console.WriteLine();
        }