SPHINX SE:获取记录问题

时间:2012-08-16 13:24:21

标签: sphinx

在SphinSE中,我可以从sphinx服务器获取任何记录。

示例:   我有以下记录:

Id  Name      Item   Price
1   karthik   Car     1000
2   Car       karthik 200

要获取记录,我使用了以下查询

select * from indexname WHERE query ='karthik; mode = any';

   It has return 2 records. How can i get record, which record having Name AS karthik using SPHINXSE. Please suggest

1 个答案:

答案 0 :(得分:0)

select * from indexname WHERE query='@Name karthik;mode=extended';

或者

select * from indexname WHERE query='@Name "^karthik$ ";mode=extended';