{"action":"created","issue":{"url":"https://api.github.com/repos/algolia/instantsearch.js/issues/3270","repository_url":"https://api.github.com/repos/algolia/instantsearch.js","labels_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/3270/labels{/name}","comments_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/3270/comments","events_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/3270/events","html_url":"https://github.com/algolia/instantsearch.js/issues/3270","id":382251329,"node_id":"MDU6SXNzdWUzODIyNTEzMjk=","number":3270,"title":"Distinct fail when changing slaves index","user":{"login":"fvoverscan","id":44998107,"node_id":"MDQ6VXNlcjQ0OTk4MTA3","avatar_url":"https://avatars1.githubusercontent.com/u/44998107?v=4","gravatar_id":"","url":"https://api.github.com/users/fvoverscan","html_url":"https://github.com/fvoverscan","followers_url":"https://api.github.com/users/fvoverscan/followers","following_url":"https://api.github.com/users/fvoverscan/following{/other_user}","gists_url":"https://api.github.com/users/fvoverscan/gists{/gist_id}","starred_url":"https://api.github.com/users/fvoverscan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvoverscan/subscriptions","organizations_url":"https://api.github.com/users/fvoverscan/orgs","repos_url":"https://api.github.com/users/fvoverscan/repos","events_url":"https://api.github.com/users/fvoverscan/events{/privacy}","received_events_url":"https://api.github.com/users/fvoverscan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-19T14:55:34Z","updated_at":"2018-11-19T16:30:15Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI have an issue when i use a sortBySelector widget...\r\nWhen i change the indice, the distinct parameter don't work anymore and i have more hits then i expect to.\r\n\r\nI have this configuration :\r\n`const search = instantsearch({\r\n            appId: client.applicationID,\r\n            apiKey: client.apiKey,\r\n            indexName: index.indexName,\r\n            searchParameters: {\r\n                hitsPerPage: 15,\r\n                distinct: 1,\r\n                facetingAfterDistinct: true,\r\n            },\r\n            routing: true\r\n        });`\r\n\r\n`search.addWidget(\r\n            instantsearch.widgets.sortBySelector({\r\n                container: '#sort-product',\r\n                indices: [\r\n                    {name: index.indexName, label: 'Last modified'},\r\n                    {name: index.indexName+'price_with_vat', label: 'Lower to Higher Price)'},\r\n                    {name: index.indexName+'-price_with_vat', label: 'Higher to Lower Price)'}\r\n                ]\r\n            })\r\n        );`\r\n\r\nYou could test the issue on that site (french only) :\r\nhttps://www.maxxess.fr/categorie/huiles-2t-226\r\n\r\nIs there something in the configuration that i miss ?\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/algolia/instantsearch.js/issues/comments/439955163","html_url":"https://github.com/algolia/instantsearch.js/issues/3270#issuecomment-439955163","issue_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/3270","id":439955163,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTk1NTE2Mw==","user":{"login":"fvoverscan","id":44998107,"node_id":"MDQ6VXNlcjQ0OTk4MTA3","avatar_url":"https://avatars1.githubusercontent.com/u/44998107?v=4","gravatar_id":"","url":"https://api.github.com/users/fvoverscan","html_url":"https://github.com/fvoverscan","followers_url":"https://api.github.com/users/fvoverscan/followers","following_url":"https://api.github.com/users/fvoverscan/following{/other_user}","gists_url":"https://api.github.com/users/fvoverscan/gists{/gist_id}","starred_url":"https://api.github.com/users/fvoverscan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvoverscan/subscriptions","organizations_url":"https://api.github.com/users/fvoverscan/orgs","repos_url":"https://api.github.com/users/fvoverscan/repos","events_url":"https://api.github.com/users/fvoverscan/events{/privacy}","received_events_url":"https://api.github.com/users/fvoverscan/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T16:30:15Z","updated_at":"2018-11-19T16:30:15Z","author_association":"NONE","body":"Yes i apply the settings on all slaves index too so the problem is resolved.\r\nBut i would like to know if this behavior is normal ?\r\n"}}
{"actor":{"display_login":"fvoverscan"}}