private static EmbeddedGraphDatabase graphDB;
private static Index<Node> index;
public static void fillDummyValues(){
System.out.println("Filling Dummy Nodes");
Transaction tx = graphDB.beginTx();
Node node1 = graphDB.createNode();
Node node2 = graphDB.createNode();
Node node3 = graphDB.createNode();
Node node4 = graphDB.createNode();
node1.setProperty("label", "my first, and node- stopword working practice Title!");
node2.setProperty("label", "Secondos, and Nodos");
node3.setProperty("label", "Tertios, Nodos");
node4.setProperty("label", "Quartios- Nodos");
index.add(node1 ,"score", new ValueContext( 1 ).indexNumeric());
index.add(node2 ,"score", new ValueContext( 0 ).indexNumeric());
index.add(node3 ,"score", new ValueContext( 2 ).indexNumeric());
index.add(node4 ,"score", new ValueContext( 3 ).indexNumeric());
index.add(node1, "label", node1.getProperty("label"));
index.add(node2, "label", node2.getProperty("label"));
index.add(node3, "label", node3.getProperty("label"));
index.add(node4, "label", node4.getProperty("label"));
// DynamicRelationshipType testType = DynamicRelationshipType.withName("test");
// node1.createRelationshipTo(node2, testType);
tx.success();
tx.finish();
}