Answer the question
In order to leave comments, you need to log in
The selection does not include all fields from the Sphinx query. Why?
There is such a source
{
sql_query = SELECT id, title, announcement, public_time FROM articles WHERE state = 1
sql_attr_timestamp = public_time
}
$query = SphinxQL::create($conn)
->select('id', 'title', 'announcement', 'public_time')
->from('Index')
->match($field, $query_string)
->orderBy('public_time', 'DESC');
Answer the question
In order to leave comments, you need to log in
Globally, it seems to me that this is just a legacy, now you can automatically understand indexed types, on the other hand, the sphinx is quite universal and works not only with sql
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question