Comments (7)
Could you post the entire piece of the code where you're creating your GraphDatabaseService
? If you're using the properties approach, it needs to look something like:
GraphDatabaseService database = new GraphDatabaseFactory().newEmbeddedDatabaseBuilder(pathToDb)
.loadPropertiesFromFile(this.getClass().getClassLoader().getResource("neo4j.properties").getPath())
.newGraphDatabase();
from neo4j-uuid.
Thanks, this is my initialization code:
String neo4jSettingsPath = Database.class.getClassLoader().getResource("neo4j.properties").getPath();
this.neo4jdb = new GraphDatabaseFactory()
.newEmbeddedDatabaseBuilder(new File("test.db"))
.loadPropertiesFromFile(neo4jSettingsPath)
.newGraphDatabase();
RuntimeRegistry.getRuntime(this.neo4jdb).waitUntilStarted();
try (Transaction tx = this.neo4jdb.beginTx())
{
assert this.neo4jdb.index().existsForNodes("uuidIndex");
}
from neo4j-uuid.
ok, second pair of eyes didn't help, so I had to debug through this only to find out you're asserting the wrong thing :)
So, either change your config to
com.graphaware.module.UIDM.uuidIndex=uuidIndex
or your test to
assert this.neo4jdb.index().existsForNodes("nodeIndex");
from neo4j-uuid.
D'OH! Hahahaha, thanks!
Though... I still can't seem to get the assertion to pass, and no indices seem to be created either. I've created a small program that produces the problem I'm seeing, would you be willing to take a look at that? I'm sure it's something stupid again, just can't figure out what it is. Sorry for the trouble.
from neo4j-uuid.
Two problems with your app:
- you need to create a node first that is indexed, in order to see the index
- you're asserting a schema index, but this module uses legacy indexes. The reason for that is that schema indexes are tied to labels, but we want to create the index no matter what labels your node has, even if it has none.
from neo4j-uuid.
I issued a pull request to your repo that demonstrates what I just said
from neo4j-uuid.
I see, that works, thank you so much! :)
from neo4j-uuid.
Related Issues (20)
- uuid not creating for relationship HOT 7
- Relationship index HOT 3
- Causal Clusters Failing HOT 24
- UUID isn't setting for Neo4j Enterprise v3.1 HOT 2
- Question: uniqueness HOT 4
- A lot of warning in debug log HOT 1
- SequenceIdGenerator not able to start in version 3.2.1.51.14 HOT 6
- if i remove this uuid plugin, will uuid still persists? HOT 2
- No GraphAware Runtime is registered with the given database HOT 1
- Conflict with apoc.refactor.mergeNodes HOT 3
- Feature request : ga.uuid.findNode() returning null HOT 4
- uuid indexes HOT 1
- Neo4j become read only after jvm heap error HOT 2
- Errors during boot HOT 6
- Uuid plugins hangs write query after upgrade HOT 5
- Failed to load uuid plugin HOT 8
- Graphaware: ERROR Could not deserialize metadata for module ID NLP
- uuid based on properties HOT 1
- Prepend string to UUIDs on creation? HOT 1
- Exception in thread "GraphAware Starter" when initializing UIDM module for the first time HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo4j-uuid.