Overview
Returns state and amatch function for ranking users by activity-derived interest facets. In passive mode it matches against the current user’s own facets (“who is like me?”); in directed mode it matches against a free-text topic (“who is into biotech?”).
For setup and the underlying model, see the Interest Matching guide.
Usage Example
Parameters
Callmatch with:
"passive" matches against the current user’s facets; "directed" matches against query.The free-text topic to match against. Required in
directed mode; must be non-empty (a blank directed query is a no-op). Not used in passive mode.Maximum number of matched users (max
50).Restrict candidates to users active in this space.
With
spaceId, also include users active in the space’s subtree.Request illustrative sample content per matched facet (only honored when the project has
exposeSampleContent enabled).Exclude the current user from results. Defaults to
true server-side.Returns
Ranked matches (descending by
score).true while a match is in progress.Error message if the last match failed.
Executes the match and updates
results.Clears
results and error.
