{"action":"created","issue":{"url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/168","repository_url":"https://api.github.com/repos/nolanlawson/pouchdb-find","labels_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/168/comments","events_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/168/events","html_url":"https://github.com/nolanlawson/pouchdb-find/issues/168","id":140871665,"number":168,"title":"Can't find usable index (even with indexes created)","user":{"login":"natcohen","id":7813574,"avatar_url":"https://avatars.githubusercontent.com/u/7813574?v=3","gravatar_id":"","url":"https://api.github.com/users/natcohen","html_url":"https://github.com/natcohen","followers_url":"https://api.github.com/users/natcohen/followers","following_url":"https://api.github.com/users/natcohen/following{/other_user}","gists_url":"https://api.github.com/users/natcohen/gists{/gist_id}","starred_url":"https://api.github.com/users/natcohen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natcohen/subscriptions","organizations_url":"https://api.github.com/users/natcohen/orgs","repos_url":"https://api.github.com/users/natcohen/repos","events_url":"https://api.github.com/users/natcohen/events{/privacy}","received_events_url":"https://api.github.com/users/natcohen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-15T04:44:43Z","updated_at":"2016-05-16T00:08:19Z","closed_at":"2016-05-15T23:50:24Z","body":"I've created index but pouchdb-find doesn't find it (Error: couldn't find a usable index.)...when I put getIndexes() I get all my indexes.\r\n\r\nMy index has 5 fields and my search uses only two of them.\r\n\r\nAnother strange behavior is that when I go on my couchDB instance on the index, it doesn't display anything and the \"progress circular\" continues to move indefinitely.\r\n\r\nIt used to work but I had to clear the cache and since then, nothing!\r\n\r\nHere is the debug log:\r\n\r\npouchdb:find planning query +18s \r\nObject {selector: Object}\r\nselector: Object\r\nnickname: Object\r\n$regex: \"^.*Albert.*$\"\r\n__proto__: Object\r\ntype: Object\r\n$eq: \"entity\"\r\n__proto__: Object__proto__: Object__proto__: Object\r\ntsp-services.js:655 Error: couldn't find a usable index. try creating an index on: type, nickname. Make sure that only $eq, $gt, $gte, $lt, and $lte are used for the indexed fields."},"comment":{"url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/comments/219323285","html_url":"https://github.com/nolanlawson/pouchdb-find/issues/168#issuecomment-219323285","issue_url":"https://api.github.com/repos/nolanlawson/pouchdb-find/issues/168","id":219323285,"user":{"login":"colinskow","id":5303269,"avatar_url":"https://avatars.githubusercontent.com/u/5303269?v=3","gravatar_id":"","url":"https://api.github.com/users/colinskow","html_url":"https://github.com/colinskow","followers_url":"https://api.github.com/users/colinskow/followers","following_url":"https://api.github.com/users/colinskow/following{/other_user}","gists_url":"https://api.github.com/users/colinskow/gists{/gist_id}","starred_url":"https://api.github.com/users/colinskow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinskow/subscriptions","organizations_url":"https://api.github.com/users/colinskow/orgs","repos_url":"https://api.github.com/users/colinskow/repos","events_url":"https://api.github.com/users/colinskow/events{/privacy}","received_events_url":"https://api.github.com/users/colinskow/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T00:08:18Z","updated_at":"2016-05-16T00:08:18Z","body":"@nolanlawson what you need to do is make the README documentation clear about what is valid and what is not. Write an index trouble-shooting guide. Cloudant's docs are quite confusing.\r\n\r\nI've spent hours pulling my hair out and I am still not personally clear on how it works."}}