Neo4JClient - Hinzufügen eines Knotens zum Index

Ich brauche ein sehr einfaches Beispiel dafür, wie man mit Neo4JClient einen Knoten zu einem Index hinzufügt

Im folgenden C # -Code habe ich einen Index und einen Mitarbeiterknoten angelegt.

Frage:
Wie kann der erstellte Knoten im folgenden Code zum Index hinzugefügt werden? Die Lösungen sollten die Möglichkeit bieten, nach EmployeeID oder Name zu suchen.

    class Program
    {
        static void Main(string[] args)
        {
            //Connect to Neo4J
            var graphClient = new GraphClient(new Uri(@"http://localhost:7474/db/data"));
            graphClient.Connect();

            //Create Index
            graphClient.CreateIndex("employee", new IndexConfiguration() { Provider = IndexProvider.lucene, Type = IndexType.exact }, IndexFor.Node);

            //Create an Employee node
            var employee = new Employee() { EmployeeID = "12345", Name = "Mike"};
            NodeReference employeeRef = graphClient.Create(employee);

            //Add the node that was just created to the Employee index.  

        }
        private class Employee
        {
            [JsonProperty("EmployeeID")]
            public string EmployeeID { get; set; }

            [JsonProperty("Name")]
            publi

Antworten auf die Frage(1)

Ihre Antwort auf die Frage