Sphinx. A lot of queries. PHP API

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
With the Sphinx is familiar enough.
I have 5 pages. One need to look at the entire database.
This made the trail. configuration file: pastebin.org/331010
Now I have to search through the database where postid = the specific value to something
to enter in the config even necessary?
And what to write in the PHP file to output another search, not
the entire base?
I hope it is clear explained :) Thank you
by | 18 views

1 Answer

0 like 0 dislike
In the configuration of the Sphinx sql_query after adding
sql_attr_uint = postid
in PHP
$sphinx = new SphinxClient();
$sphinx->SetServer('', 9312);
$sphinx->SetFilter('postid', array(23) );
23 where the desired value of the postid

Related questions

0 like 0 dislike
1 answer
asked Mar 23, 2019 by GearHead
0 like 0 dislike
3 answers
asked May 20, 2019 by ortsuev33
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
39,968 users