1. A method comprising, by a computing device: receiving, from a client system of a first user, a structured query comprising references to one or more selected objects accessible by the computing device; generating one or more search results corresponding to the structured query, wherein each search result corresponds to a particular object accessible by the computing device; determining one or more search intents based at least on whether one or more of the selected objects referenced in the structured query match objects corresponding to a search intent indexed in a pattern-detection model; and scoring the search results based on one or more of the search intents.