K
K
Kirill Firsov2010-10-21 15:05:56
PHP
Kirill Firsov, 2010-10-21 15:05:56

Sphinx. Lots of requests. PHP API

Hello.
Little is known about the Sphinx.
I have 5 pages. On one it is necessary to search on all base.
This is done next. config: pastebin.org/331010
Now I need to somehow search the database where postid = a specific value, do I
still need to enter something in the config?
And what to enter in the php file to display a different search, and not
the entire database?
I hope I explained it clearly :) Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2010-10-21
@Isis

Add
sql_attr_uint = postid
to the sphinx config after sql_query
$sphinx = new SphinxClient();
$sphinx->SetServer('127.0.0.1', 9312);
$sphinx->SetFilter('postid', array(23) );
where 23 is the required postid value

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question