Fix follow suggestions order

lolsob-rspec
Eugen Rochko 2016-10-15 17:19:18 +02:00
parent 4e89662eea
commit 8497dfc98e
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ START a=node:account_index(Account={id})
MATCH (a)-[:follows]->(b)-[:follows]->(c) MATCH (a)-[:follows]->(b)-[:follows]->(c)
WHERE a <> c WHERE a <> c
AND NOT (a)-[:follows]->(c) AND NOT (a)-[:follows]->(c)
RETURN DISTINCT c.account_id, c.nodeRank RETURN DISTINCT c.account_id, count(b), c.nodeRank
ORDER BY c.nodeRank ORDER BY count(b) DESC, c.nodeRank DESC
LIMIT {limit} LIMIT {limit}
END END