6. A method comprising: generating, at a social networking system, a structured query based on information received from a user, the structured query including a focal search object and a connected search object; updating a reverse index to include an identifier for structured query, the reverse index storing a plurality of structured query identifiers based on focal search objects and the connected search objects in the structured queries; receiving an action; accessing the reverse index to determine whether the received action causes an object maintained by the social networking system to match the structured query; and responsive to determining that the received action causes the object to match the structured query, storing a link to the object in association with the structured query.
14. The method of claim 6 wherein received action is received from an additional user different from the user.