ユーザー数が平均ユーザー数よりも多いグループを見つけたい場合は、where 句を追加しましたが、where で集計を使用することはできません.... これが私のサイファー クエリです。
params.put("query", "name:*");
ExecutionResult result = engine.execute( "start n=node:groups({query})
match n<-[:Members_In]-x
with n,count(distinct x) as numberOfUsers
where numOfUsers>avg(numOfUsers)
return n.name,numOfUsers ", params );
n
はグループ名、x は各グループのユーザーです。グループユーザーの平均数を取得してから、より多くのユーザーを含むグループを返すにはどうすればよいですか? ありがとう。