Comments (4)
I have found the issue: we should provide the "outId" and "inId" property in the edge mapping both in config file and the edge index in ES. The code will try to find the outId/inId property when forming an edge in the graph.
The following is my current config file ( I am using the embedded ES in Crate ):
{
"class": "org.unipop.elastic.ElasticSourceProvider",
"clusterName": "crate",
"addresses": "http://localhost:4200",
"vertices": [
{
"index": "vertex",
"type": "default",
"id": "@_id",
"label": "person",
"properties": {
},
"dynamicProperties": true
}
],
"edges": [
{
"index": "edge",
"type": "default",
"id": "@_id",
"label": "knows",
"properties": {
},
"dynamicProperties": {
},
"outVertex": {
"ref": true,
"id": "",
"label": "person",
"properties": {}
},
"inVertex": {
"ref": true,
"id": "",
"label": "person",
"properties": {}
}
}
]
}
from unipop.
@zxnblake I didn't understand you completely but in your mapping file you haven't provide id properties for both inVertex and outVertex
from unipop.
Sorry for the wrong config file.. The following one is working:
{
"class": "org.unipop.elastic.ElasticSourceProvider",
"clusterName": "jiesi-crate-userprofile",
"addresses": "http://172.28.235.41:20100",
"vertices": [
{
"index": "user_profile_jsf_jim",
"type": "default",
"id": "@_id",
"label": "@_type",
"properties": {
},
"dynamicProperties": true
}
],
"edges": [
{
"index": "user_relation",
"type": "knows",
"id": "@_id",
"label": "@_type",
"outId": "",
"inId": "",
"properties": {
},
"dynamicProperties": {
"excludeFields": ["outId", "inId"]
},
"outVertex": {
"ref": true,
"id": "@outid",
"label": "default",
"properties": {}
},
"inVertex": {
"ref": true,
"id": "inId",
"label": "default",
"properties": {}
}
}
]
}
from unipop.
You're missing a "@" in your inVertex id property
from unipop.
Related Issues (20)
- group bug
- path finder
- Profile bug
- How to write conf content in coding HOT 4
- Failed in adding vertex to elastic graph HOT 1
- Does unipop support modeling a single table data as a 'virtual' graph? HOT 3
- Documentation for unipop configuration / providers file HOT 4
- Unipop graph.edge.count does not return correct result HOT 6
- g.V().hasLabel("USER").limit(2).id().toList() can't work HOT 6
- Can unipop support multi mappings for different graph models running at the same time? HOT 5
- Will unipop support in-memory gremlin providers like redis? HOT 1
- Status of module-level unit tests
- A quick start guide HOT 4
- Error:org.unipop.jdbc.JdbcSourceProvider not found
- Can unipop support graph from multi data sources ? HOT 1
- Does unipop support distributed clustering? or is it just a single machine application? HOT 1
- Unipop Elasticsearch plugin working only on 10000 docuements HOT 30
- Elasticsearch - Ids of nested edges and vertices
- Repository: Wiki is editable by anyone
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 unipop.