hapiger icon indicating copy to clipboard operation
hapiger copied to clipboard

recommendations not update

Open arafay696 opened this issue 9 years ago • 1 comments

Hi, First, i want to thanks to you for great plugin.Its really a good plugin and informative. Problem: Events:

curl -X POST 'http://localhost:3456/events' -d '{
    "events": [
    {
      "namespace":  "test",
      "person":     "[email protected]",
      "action":     "view",
      "thing":      "IPOD"
    }
  ]
}'
curl -X POST 'http://localhost:3456/events' -d '{
    "events": [
    {
      "namespace":  "test",
      "person":     "[email protected]",
      "action":     "view",
      "thing":      "IPOD"
    }
  ]
}'
curl -X POST 'http://localhost:3456/events' -d '{
    "events": [
    {
      "namespace":  "test",
      "person":     "[email protected]",
      "action":     "buy",
      "thing":      "IPOD",
      "expires_at": "2016-09-10"
    }
  ]
}'`

recommendations:

`curl -X POST 'http://localhost:3456/recommendations' -d '{
    "namespace": "test",
    "person": "[email protected]",
    "configuration": {
      "actions" : {"view": 5, "buy": 10}
    }
}'

returns: IPOD

But when i raise event for '[email protected]'

curl -X POST 'http://localhost:3456/events' -d '{
    "events": [
    {
      "namespace":  "test",
      "person":     "[email protected]",
      "action":     "buy",
      "thing":      "IPOD",
      "expires_at": "2016-09-10"
    }
  ]
}'

and send request for recommendation it still returns "IPOD". Why? What should i do?

2: hapiger using postgres works in windows or not?

arafay696 avatar Jun 16 '16 05:06 arafay696

1: There are many events that if they happen you still want to be able to recommend their thing, e.g. if a user views and ipod, you would still like them to be recommended to buy the ipod. If someone does buy the ipod and you do not want them to be recommended anymore, then you can use filter_previous_actions as specified in the docs here https://github.com/grahamjenson/ger 2: Node works in windows, postgres works in windows, I assume that HapiGER works in windows... but I have not tested it.

grahamjenson avatar Jun 16 '16 16:06 grahamjenson