Title: Multimatch query couldn't get second query results · Issue #185 · FoolCode/SphinxQL-Query-Builder · GitHub
Open Graph Title: Multimatch query couldn't get second query results · Issue #185 · FoolCode/SphinxQL-Query-Builder
X Title: Multimatch query couldn't get second query results · Issue #185 · FoolCode/SphinxQL-Query-Builder
Description: Hello, I am trying to make a query and then get the "total_found" by executing "SHOW META" query. $conn = new Connection(); $conn->setParams(array('host' => 'localhost', 'port' => 9306)); $cl = new SphinxQL($conn); $cl->select(); $cl->fr...
Open Graph Description: Hello, I am trying to make a query and then get the "total_found" by executing "SHOW META" query. $conn = new Connection(); $conn->setParams(array('host' => 'localhost', 'port' => 9306)); $cl = new...
X Description: Hello, I am trying to make a query and then get the "total_found" by executing "SHOW META" query. $conn = new Connection(); $conn->setParams(array('host' => 'l...
Opengraph URL: https://github.com/FoolCode/SphinxQL-Query-Builder/issues/185
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multimatch query couldn't get second query results","articleBody":"Hello,\r\n\r\nI am trying to make a query and then get the \"total_found\" by executing \"SHOW META\" query.\r\n\r\n```\r\n$conn = new Connection();\r\n\r\n$conn-\u003esetParams(array('host' =\u003e 'localhost', 'port' =\u003e 9306));\r\n\r\n$cl = new SphinxQL($conn);\r\n$cl-\u003eselect();\r\n$cl-\u003efrom(\"frtIndex\");\r\n$cl-\u003elimit($pageIndex, 5);\r\n\r\n$tipler = array(\r\n \"1\",\r\n \"4\",\r\n \"3\",\r\n);\r\n\r\nif(in_array($_GET['t'], $tipler)) {\r\n $cl-\u003ewhere(\"tip_id\", \"=\", $_GET['t']);\r\n}\r\n\r\n$q = strtolower(trim($_GET['q']));\r\n$cl-\u003ematch(array(\"name\", \"detail\"), $q);\r\n$cl-\u003eenqueue((new SphinxQL($conn))-\u003equery('SHOW META'));\r\n//$cl-\u003eenqueue((new Helper($conn))-\u003eshowMeta());\r\n\r\n$cl-\u003ecompileSelect();\r\n$sql = $cl-\u003egetCompiled();\r\n\r\nprint_r($sql);\r\n\r\n$result = $cl-\u003eexecuteBatch();\r\n\r\n$res1 = $result-\u003egetNext();\r\n$res2 = $result-\u003egetNext();\r\n\r\nprint_r($res1);\r\nprint_r($res2);\r\n\r\n```\r\n\r\nThe res2 is empty. I can only get the res1 (which has the select query results in it).\r\n\r\nAny idea?","author":{"url":"https://github.com/umutbesler","@type":"Person","name":"umutbesler"},"datePublished":"2019-09-27T07:27:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/185/SphinxQL-Query-Builder/issues/185"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8d12e1b9-4f0e-f7fa-120d-4cb095004d71 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBC8:3A2E94:82639:A7486:697DB347 |
| html-safe-nonce | 01f75541a5d99be50803ae71fb872ceef112152cb294409a56de558a0b761318 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkM4OjNBMkU5NDo4MjYzOTpBNzQ4Njo2OTdEQjM0NyIsInZpc2l0b3JfaWQiOiI5MDE1ODIzNzk1NjU0MzQxNDQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 059f6e3c652c314db08a5fcd010d4c57a38531069e90e17e6ad963568cb57877 |
| hovercard-subject-tag | issue:499283316 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/FoolCode/SphinxQL-Query-Builder/185/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cce27c4013a1fcd6c40aaef573acac73556142b42d9ffb6f0c50add36caf01b8/FoolCode/SphinxQL-Query-Builder/issues/185 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cce27c4013a1fcd6c40aaef573acac73556142b42d9ffb6f0c50add36caf01b8/FoolCode/SphinxQL-Query-Builder/issues/185 |
| og:image:alt | Hello, I am trying to make a query and then get the "total_found" by executing "SHOW META" query. $conn = new Connection(); $conn->setParams(array('host' => 'localhost', 'port' => 9306)); $cl = new... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | umutbesler |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/FoolCode/SphinxQL-Query-Builder git https://github.com/FoolCode/SphinxQL-Query-Builder.git |
| octolytics-dimension-user_id | 915570 |
| octolytics-dimension-user_login | FoolCode |
| octolytics-dimension-repository_id | 5473481 |
| octolytics-dimension-repository_nwo | FoolCode/SphinxQL-Query-Builder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5473481 |
| octolytics-dimension-repository_network_root_nwo | FoolCode/SphinxQL-Query-Builder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width