-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Description
Turned native: true, and Recommendify would fail silently w/ Jaccard similarity instead of throwing some error when native extensions are failing. (if not built, I do get a proper error message: recommendify_native not found - you need to run rake build_native first)
Note that matrices are built but the final similarities hash in Redis is empty:
redis 127.0.0.1:6379[5]> hgetall recommendify:users:ccmatrix
- "989:992"
- "1"
- "989:994"
- "1"
- "992:994"
- "2"
- "990:992"
- "1"
- "990:994"
- "1"
- "991:993"
- "1"
- "991:994"
- "1"
- "993:994"
- "1"
redis 127.0.0.1:6379[5]> hgetall recommendify:similarities - "989"
- ""
- "992"
- ""
- "994"
- ""
- "990"
- ""
- "991"
- ""
- "993"
- ""
Some debug output added shows exit output as: item count is zero or one <-- this error should be thrown
Further debugging shows that unless you use DB 0 in Redis from Ruby, the native code will fail since it uses the default DB. Will open a new issue or fork for this.
Metadata
Metadata
Assignees
Labels
No labels