Missing Indexes - solved

Hello folks,

I have a node like this:

public class ExampleNode {

    Long id;

    String symbol;  

//two additional attributes with the Index annotation and a few more without

I use the embedded driver to create the nodes but when I run the CALL db.indexes it returns nothing... Am I doing something wrong?

Apparently the Index annotation is not enough, indexing is disabled by default. You need to change your configuration to enable indexing:

  private String embeddedDataDir;

  public SessionFactory sessionFactory() {
    org.neo4j.ogm.config.Configuration config = new org.neo4j.ogm.config.Configuration();

    return new SessionFactory(config, "com.example");