Database Reference
In-Depth Information
Figure 12-17. Searching for Products in stock at Locations within a certain distance of the User location
Intent Graph Model
The last part of the graph model exploration considers all the other graphs in order to suggest products based on the
Purchase node type. The intent graph also considers the products, users, locations, and tags that are connected based
on a Purchase.
Products Purchased by Friends
To get all of the products that have been purchased by friends, the friendsPurchase method is called from
PurchaseDAO class, which is shown in Listing 12-45. The corresponding route is shown in Listing 12-44.
Listing 12-44. Purchases made by Friends Route
@Action(value = "intent", results = {
@Result(name = "success", type = "mustache", location =
"/mustache/html/graphs/intent/index.html")
})
public String intent() {
setTitle("Products Purchased by Friends");
 
Search WWH ::




Custom Search