diff --git a/src/plugins/discourse/declaration.js b/src/plugins/discourse/declaration.js index f268a67..24347a5 100644 --- a/src/plugins/discourse/declaration.js +++ b/src/plugins/discourse/declaration.js @@ -12,7 +12,7 @@ export const topicNodeType: NodeType = deepFreeze({ name: "Topic", pluralName: "Topics", prefix: NodeAddress.append(nodePrefix, "topic"), - defaultWeight: 2, + defaultWeight: 0, description: "A topic (or post-container) in a Discourse instance. Every topic has at least one post.", }); @@ -21,7 +21,7 @@ export const postNodeType: NodeType = deepFreeze({ name: "Post", pluralName: "Posts", prefix: NodeAddress.append(nodePrefix, "post"), - defaultWeight: 1, + defaultWeight: 0, description: "A post in some topic in a Discourse instance.", }); @@ -45,7 +45,7 @@ export const topicContainsPostEdgeType: EdgeType = deepFreeze({ forwardName: "contains post", backwardName: "is contained by topic", prefix: EdgeAddress.append(edgePrefix, "topicContainsPost"), - defaultWeight: {forwards: 1 / 16, backwards: 1 / 4}, + defaultWeight: {forwards: 0, backwards: 1 / 8}, description: "Connects a topic to the posts that it contains.", }); @@ -53,7 +53,7 @@ export const postRepliesEdgeType: EdgeType = deepFreeze({ forwardName: "post is reply to", backwardName: "post replied to by", prefix: EdgeAddress.append(edgePrefix, "replyTo"), - defaultWeight: {forwards: 1, backwards: 1 / 16}, + defaultWeight: {forwards: 1 / 2, backwards: 0}, description: "Connects a post to the post that it is a reply to.", }); @@ -61,7 +61,7 @@ export const authorsTopicEdgeType: EdgeType = deepFreeze({ forwardName: "authors topic", backwardName: "topic is authored by", prefix: EdgeAddress.append(edgePrefix, "authors", "topic"), - defaultWeight: {forwards: 1 / 4, backwards: 1}, + defaultWeight: {forwards: 0, backwards: 1}, description: "Connects an author to a topic they created.", }); @@ -69,7 +69,7 @@ export const authorsPostEdgeType: EdgeType = deepFreeze({ forwardName: "authors post", backwardName: "post is authored by", prefix: EdgeAddress.append(edgePrefix, "authors", "post"), - defaultWeight: {forwards: 1 / 4, backwards: 1}, + defaultWeight: {forwards: 0, backwards: 1}, description: "Connects an author to a post they've created.", }); @@ -77,7 +77,7 @@ export const createsLikeEdgeType: EdgeType = deepFreeze({ forwardName: "creates like", backwardName: "like created by", prefix: EdgeAddress.append(edgePrefix, "createsLike"), - defaultWeight: {forwards: 1, backwards: 1 / 16}, + defaultWeight: {forwards: 1, backwards: 0}, description: "Connects a Discourse user to a like that they created.", }); @@ -85,7 +85,7 @@ export const likesEdgeType: EdgeType = deepFreeze({ forwardName: "likes", backwardName: "is liked by", prefix: EdgeAddress.append(edgePrefix, "likes"), - defaultWeight: {forwards: 1, backwards: 1 / 16}, + defaultWeight: {forwards: 1, backwards: 0}, description: "Connects a Discourse like to a post that was liked.", }); @@ -93,7 +93,7 @@ export const referencesPostEdgeType: EdgeType = deepFreeze({ forwardName: "references post", backwardName: "post is referenced by", prefix: EdgeAddress.append(edgePrefix, "references", "post"), - defaultWeight: {forwards: 1 / 2, backwards: 1 / 16}, + defaultWeight: {forwards: 1 / 2, backwards: 0}, description: "Connects a Discourse post to another post it referenced.", }); @@ -101,7 +101,7 @@ export const referencesTopicEdgeType: EdgeType = deepFreeze({ forwardName: "references topic", backwardName: "topic is referenced by", prefix: EdgeAddress.append(edgePrefix, "references", "topic"), - defaultWeight: {forwards: 1 / 2, backwards: 1 / 16}, + defaultWeight: {forwards: 1 / 2, backwards: 0}, description: "Connects a Discourse post to a topic it referenced.", }); @@ -109,7 +109,7 @@ export const referencesUserEdgeType: EdgeType = deepFreeze({ forwardName: "mentions", backwardName: "is mentioned by", prefix: EdgeAddress.append(edgePrefix, "references", "user"), - defaultWeight: {forwards: 1 / 4, backwards: 1 / 16}, + defaultWeight: {forwards: 1 / 4, backwards: 0}, description: "Connects a Discourse post to a user it mentions", });