Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is still working? #68

Open
omerfdmrl opened this issue Sep 24, 2022 · 0 comments
Open

Is still working? #68

omerfdmrl opened this issue Sep 24, 2022 · 0 comments

Comments

@omerfdmrl
Copy link

omerfdmrl commented Sep 24, 2022

Hi, is GER still working? I try but I can't get any recommendation.
My data;

[
  {
    namespace: 'blog',
    person: '632e7fc49f95b1f517887ada',
    action: 'like',
    thing: 'kZv2xOCio',
    expires_at: 2025-06-05T21:00:00.000Z
  },
  {
    namespace: 'blog',
    person: '632e7fc49f95b1f517887ada',
    action: 'like',
    thing: 'kZv2xOCio',
    expires_at: 2025-06-05T21:00:00.000Z
  },
  {
    namespace: 'blog',
    person: '632e7fc49f95b1f517887ada',
    action: 'like',
    thing: 'kZv2xOCio',
    expires_at: 2025-06-05T21:00:00.000Z
  },
  {
    namespace: 'blog',
    person: '632e7fc49f95b1f517887ada',
    action: 'like',
    thing: '3rpg8EI3g',
    expires_at: 2025-06-05T21:00:00.000Z
  },
  {
    namespace: 'blog',
    person: '632e7fc49f95b1f517887ada',
    action: 'like',
    thing: '3rpg8EI3g',
    expires_at: 2025-06-05T21:00:00.000Z
  },
  {
    namespace: 'blog',
    person: '632e7fc49f95b1f517887ada',
    action: 'like',
    thing: 'kZv2xOCio',
    expires_at: 2025-06-05T21:00:00.000Z
  },
  {
    namespace: 'blog',
    person: '632e7fc49f95b1f517887ada',
    action: 'like',
    thing: 'kZv2xOCio',
    expires_at: 2022-09-24T04:17:19.000Z
  }
]

And I try;

const g = require('ger')
const Recommendation = require('../models/recommendation.model')
var esm = new g.MemESM()
var ger = new g.GER(esm);
ger.initialize_namespace('blog')
ger.initialize_namespace('user')
ger.initialize_namespace('comment')
const data = await Recommendation.find({},{_id:0, namespace:1, person:1, action:1, thing:1, expires_at:1})
ger.events(data)
ger.recommendations_for_person('blog', '632e7fc49f95b1f517887ada', {actions: {like: 1}})

It should recommend something but It's not doing. Why?

Edit: Also I try your examples too and thats nothing returning to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant