I started new project today. I have users table, tags table and user_tags edge for graph results.
I attached to users some tags on graph. How can I list the users with the most similar entries with ArangoDB.
For example:
- user id: 112 has 3 tags (tags ids: 50, 51, 52, 53)
- user id: 113 has 5 tags (tags ids: 52, 53, 54, 55, 56)
- user id: 114 has 4 tags (tags ids: 51, 52, 53, 54)
- user id: 115 has 2 tags (tags ids: 48, 49)
When i searched user id 112 user. The results should be similar to this:
- user id: 114 (3 matches, 51, 52, 53)
- user id: 113 (2 matches, 52, 53)
Non-common data should not come within results user id: 115
If no one knows arangodb solution, I can use neo4j if there is a solution with neo4j.
Thanks.
In cypher, this is the query :
Cheers