Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Provide query instead of index name when generating recommendations #32

Open
pratikshya opened this issue Feb 20, 2015 · 0 comments
Open

Comments

@pratikshya
Copy link

Would it be possible to give a query instead of index name alone when generating the recommendations? For example, in the code below:
curl -XPOST localhost:9200/_river/movielens_items_from_user/_meta -d '{
"type": "taste",
"action": "recommended_items_from_user",
"num_of_items": 10,
"data_model": {
"cache": {
"weight": "100m"
}
},
"index_info": {
"index": "movielens"
}
}'

Instead of providing the index_info, would it be also possible to provide some query which will bring subset of the actual dataset? I do not want to recommend items for user from the entire dataset but subset of it. And having said that I do not want to have one index per user as well. Is it possible to use query as source of data instead of index itself?

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

No branches or pull requests

1 participant