{"action":"created","issue":{"url":"https://api.github.com/repos/10up/ElasticPress/issues/1159","repository_url":"https://api.github.com/repos/10up/ElasticPress","labels_url":"https://api.github.com/repos/10up/ElasticPress/issues/1159/labels{/name}","comments_url":"https://api.github.com/repos/10up/ElasticPress/issues/1159/comments","events_url":"https://api.github.com/repos/10up/ElasticPress/issues/1159/events","html_url":"https://github.com/10up/ElasticPress/issues/1159","id":378404609,"node_id":"MDU6SXNzdWUzNzg0MDQ2MDk=","number":1159,"title":"No results with tax_query","user":{"login":"bjorn2404","id":303829,"node_id":"MDQ6VXNlcjMwMzgyOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/303829?v=4","gravatar_id":"","url":"https://api.github.com/users/bjorn2404","html_url":"https://github.com/bjorn2404","followers_url":"https://api.github.com/users/bjorn2404/followers","following_url":"https://api.github.com/users/bjorn2404/following{/other_user}","gists_url":"https://api.github.com/users/bjorn2404/gists{/gist_id}","starred_url":"https://api.github.com/users/bjorn2404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjorn2404/subscriptions","organizations_url":"https://api.github.com/users/bjorn2404/orgs","repos_url":"https://api.github.com/users/bjorn2404/repos","events_url":"https://api.github.com/users/bjorn2404/events{/privacy}","received_events_url":"https://api.github.com/users/bjorn2404/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-07T18:02:56Z","updated_at":"2018-11-26T20:32:13Z","closed_at":"2018-11-12T18:27:29Z","author_association":"MEMBER","body":"I'm using Polylang, which creates a custom languages taxonomy to manage language content, in combination with the ElasticPress plugin. ElasticPress is adding the correct the language term ID to the query but there are no results with it in place and the placement in the query body looks like it could be off with repeated bool must. I tested by removing the following from class-ep-api.php on line 1236 and the search results worked correctly. Adding it back caused no results for very basic terms such as page names that should be appearing. I've verified that multiple pages have the taxonomy ID assigned as seen below and have re-indexed the content multiple times.\r\n\r\n```\r\nif( ! empty( $es_tax_query ) ) {\r\n\t$filter['bool']['must'][]['bool'] = $es_tax_query;\r\n}\r\n```\r\n\r\nCurrent WordPress version: 4.9.6\r\nCurrent ElasticPress version: 2.6.1\r\n\r\nScreenshots of Query Body example with repeated must clauses:\r\n\r\n![image](https://user-images.githubusercontent.com/303829/48150649-e5935a80-e284-11e8-95e0-e009ca396fa9.png)\r\n\r\nA little further down in the Query body:\r\n\r\n![image](https://user-images.githubusercontent.com/303829/48150107-65b8c080-e283-11e8-842c-867200716db8.png)\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/10up/ElasticPress/issues/comments/441787524","html_url":"https://github.com/10up/ElasticPress/issues/1159#issuecomment-441787524","issue_url":"https://api.github.com/repos/10up/ElasticPress/issues/1159","id":441787524,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTc4NzUyNA==","user":{"login":"kaka0502","id":1608602,"node_id":"MDQ6VXNlcjE2MDg2MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/1608602?v=4","gravatar_id":"","url":"https://api.github.com/users/kaka0502","html_url":"https://github.com/kaka0502","followers_url":"https://api.github.com/users/kaka0502/followers","following_url":"https://api.github.com/users/kaka0502/following{/other_user}","gists_url":"https://api.github.com/users/kaka0502/gists{/gist_id}","starred_url":"https://api.github.com/users/kaka0502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaka0502/subscriptions","organizations_url":"https://api.github.com/users/kaka0502/orgs","repos_url":"https://api.github.com/users/kaka0502/repos","events_url":"https://api.github.com/users/kaka0502/events{/privacy}","received_events_url":"https://api.github.com/users/kaka0502/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T20:32:13Z","updated_at":"2018-11-26T20:32:13Z","author_association":"NONE","body":"Wondering how this was resolved. I may be running into a similar issue after upgrading to 2.6.1 version of ElasticPress. "}}
{"actor":{"display_login":"kaka0502"}}