{"action":"created","issue":{"url":"https://api.github.com/repos/cloudant/java-cloudant/issues/446","repository_url":"https://api.github.com/repos/cloudant/java-cloudant","labels_url":"https://api.github.com/repos/cloudant/java-cloudant/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/cloudant/java-cloudant/issues/446/comments","events_url":"https://api.github.com/repos/cloudant/java-cloudant/issues/446/events","html_url":"https://github.com/cloudant/java-cloudant/issues/446","id":326527718,"number":446,"title":"search returns all documents and does not limit the result.","user":{"login":"tanwald","id":886946,"avatar_url":"https://avatars1.githubusercontent.com/u/886946?v=4","gravatar_id":"","url":"https://api.github.com/users/tanwald","html_url":"https://github.com/tanwald","followers_url":"https://api.github.com/users/tanwald/followers","following_url":"https://api.github.com/users/tanwald/following{/other_user}","gists_url":"https://api.github.com/users/tanwald/gists{/gist_id}","starred_url":"https://api.github.com/users/tanwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanwald/subscriptions","organizations_url":"https://api.github.com/users/tanwald/orgs","repos_url":"https://api.github.com/users/tanwald/repos","events_url":"https://api.github.com/users/tanwald/events{/privacy}","received_events_url":"https://api.github.com/users/tanwald/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-25T13:37:40Z","updated_at":"2018-05-28T09:04:05Z","closed_at":"2018-05-28T09:04:05Z","author_association":"NONE","body":"If I query my search index using Cloudant Dashboard resulting in the path\r\n\r\n`..._design/fulltext/_search/fulltext?subject%3A\"check\" OR body%3A\"check\"`\r\n\r\nI get the expected records (2 documents).\r\n\r\nUsing the CloudantClient:\r\n\r\n```java\r\nString query = \"subject:\\\"\" +  filter.getSubject().trim() + \"\\\" OR body:\\\"\" + filter.getBody().trim() + \"\\\"\";\r\nLOGGER.fine(query);\r\nresult = this.database.search(\"fulltext/fulltext\")\r\n    .limit(limit)\r\n    .includeDocs(true)\r\n    .query(query, this.documentType);\r\n```\r\n\r\nthe logger within the snippet above logs\r\n\r\n`subject:\"check\" OR body:\"check\"`\r\n\r\nbut returns all documents. Neither query nor limit seem to have any effect.\r\n\r\n- CloudantClient\r\n2.12.0\r\n- Java version\r\nOracle 1.8\r\n- Optional okhttp dependency.\r\nno\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cloudant/java-cloudant/issues/comments/392467182","html_url":"https://github.com/cloudant/java-cloudant/issues/446#issuecomment-392467182","issue_url":"https://api.github.com/repos/cloudant/java-cloudant/issues/446","id":392467182,"user":{"login":"tanwald","id":886946,"avatar_url":"https://avatars1.githubusercontent.com/u/886946?v=4","gravatar_id":"","url":"https://api.github.com/users/tanwald","html_url":"https://github.com/tanwald","followers_url":"https://api.github.com/users/tanwald/followers","following_url":"https://api.github.com/users/tanwald/following{/other_user}","gists_url":"https://api.github.com/users/tanwald/gists{/gist_id}","starred_url":"https://api.github.com/users/tanwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanwald/subscriptions","organizations_url":"https://api.github.com/users/tanwald/orgs","repos_url":"https://api.github.com/users/tanwald/repos","events_url":"https://api.github.com/users/tanwald/events{/privacy}","received_events_url":"https://api.github.com/users/tanwald/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T09:04:05Z","updated_at":"2018-05-28T09:04:05Z","author_association":"NONE","body":"Thank you very much for your quick reply. It was actually a caching issue on my side. Sorry for that..."}}
{"actor":{"display_login":"tanwald"}}