0
我在獅身人面像SE是新的PHP獅身人面像客戶端選擇所有最新的索引數據。我有兩個查詢,我努力嘗試,但失敗了。從獅身人面像搜索
一)我試圖從獅身人面像一些結果就像是在SQL(SELECT * FROM table ORDER BY date DESC
)。 例子:
$results = $client->Query('*', 'posts');
sphinx.conf中的文件我已經在指數部分
b)還正在試圖對博客評論的索引號加enable_star = 1
,沒寫的.conf這一點。
的sphinx.conf:
source blog
{
type = mysql
sql_host = localhost
sql_user = root
sql_pass = root
sql_db = myblog
sql_port = 3306 # optional, default is 3306
sql_query = SELECT id, title, content, UNIX_TIMESTAMP(publish_date) AS publish_date, author_id FROM posts
sql_attr_uint = author_id
sql_field_string = title
sql_field_string = content
sql_attr_multi = uint category_id from query; \
SELECT post_id, category_id FROM posts_categories
sql_attr_timestamp = publish_date
sql_query_info = SELECT id, title FROM posts WHERE ID=$id
}
index posts
{
source = blog
path = C:\sphinx\data\blog
docinfo = extern
charset_type = sbcs
}
indexer
{
mem_limit = 32M
}
searchd
{
listen = 9312
log = c:\sphinx\log\searchd.log
query_log = c:\sphinx\log\query.log
max_children = 30
pid_file = c:\sphinx\log\searchd.pid
}
我已經添加了的.conf。 – Flair