{"action":"created","issue":{"url":"https://api.github.com/repos/algolia/algoliasearch-helper-js/issues/370","repository_url":"https://api.github.com/repos/algolia/algoliasearch-helper-js","labels_url":"https://api.github.com/repos/algolia/algoliasearch-helper-js/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-helper-js/issues/370/comments","events_url":"https://api.github.com/repos/algolia/algoliasearch-helper-js/issues/370/events","html_url":"https://github.com/algolia/algoliasearch-helper-js/issues/370","id":173836726,"number":370,"title":"Dynamic sorting / customRanking at query time?","user":{"login":"timkelty","id":18329,"avatar_url":"https://avatars.githubusercontent.com/u/18329?v=3","gravatar_id":"","url":"https://api.github.com/users/timkelty","html_url":"https://github.com/timkelty","followers_url":"https://api.github.com/users/timkelty/followers","following_url":"https://api.github.com/users/timkelty/following{/other_user}","gists_url":"https://api.github.com/users/timkelty/gists{/gist_id}","starred_url":"https://api.github.com/users/timkelty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timkelty/subscriptions","organizations_url":"https://api.github.com/users/timkelty/orgs","repos_url":"https://api.github.com/users/timkelty/repos","events_url":"https://api.github.com/users/timkelty/events{/privacy}","received_events_url":"https://api.github.com/users/timkelty/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-29T18:15:03Z","updated_at":"2016-09-01T19:34:20Z","closed_at":"2016-09-01T19:34:20Z","body":"Here's my use-case:\r\n\r\n- I have a `products` index with a `products.category` is a facet.\r\n- Different pages have a search with a pre-filtered `products.category` facet.\r\n\r\nI want to \"Feature\" products to always show first, but whether or not they are featured changes based on the page your are on.\r\n\r\nThe only way I can see doing this currently is with a unique index for each of my \"categories\", whic doesn't seem manageable.\r\n\r\nAny other ideas?"},"comment":{"url":"https://api.github.com/repos/algolia/algoliasearch-helper-js/issues/comments/244187448","html_url":"https://github.com/algolia/algoliasearch-helper-js/issues/370#issuecomment-244187448","issue_url":"https://api.github.com/repos/algolia/algoliasearch-helper-js/issues/370","id":244187448,"user":{"login":"bobylito","id":393765,"avatar_url":"https://avatars.githubusercontent.com/u/393765?v=3","gravatar_id":"","url":"https://api.github.com/users/bobylito","html_url":"https://github.com/bobylito","followers_url":"https://api.github.com/users/bobylito/followers","following_url":"https://api.github.com/users/bobylito/following{/other_user}","gists_url":"https://api.github.com/users/bobylito/gists{/gist_id}","starred_url":"https://api.github.com/users/bobylito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobylito/subscriptions","organizations_url":"https://api.github.com/users/bobylito/orgs","repos_url":"https://api.github.com/users/bobylito/repos","events_url":"https://api.github.com/users/bobylito/events{/privacy}","received_events_url":"https://api.github.com/users/bobylito/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T19:34:20Z","updated_at":"2016-09-01T19:34:20Z","body":"Hi @timkelty. Thanks for opening an issue :) I think this is a bit beyond the scope of the Helper.\r\n\r\nI think you can achieve this either by having a featured attribute for each category on each product and them to your custom ranking. You can also split your index into several indices. \r\n\r\nPlease send an email to `support at algolia dot com` mentioning me if this doesn't solve your issue :)"}}
{"actor":{"display_login":"bobylito"}}