搜索结果中未显示体重列
Weight column doesn't appear in search result
我正在通过“Introduction to Search with Sphinx”一书和测试数据的第一个查询来了解 Sphinx:
mysql> select * from test1 where match('test');
应该产生这个输出:
但这是我得到的输出:
为什么我的结果中缺少 权重 列?
SphinxQL 曾经做过很多事情 'magically',其中之一是根据查询自动添加列。但是决定魔术行为经常混淆程序(不确定该列是否存在)
...所以现在,只有在您明确要求时才会出现列(尽管仍然可以使用 * 作为 id+属性)
mysql> select *,weight() as weight from test1 where match('test');
我正在通过“Introduction to Search with Sphinx”一书和测试数据的第一个查询来了解 Sphinx:
mysql> select * from test1 where match('test');
应该产生这个输出:
但这是我得到的输出:
为什么我的结果中缺少 权重 列?
SphinxQL 曾经做过很多事情 'magically',其中之一是根据查询自动添加列。但是决定魔术行为经常混淆程序(不确定该列是否存在)
...所以现在,只有在您明确要求时才会出现列(尽管仍然可以使用 * 作为 id+属性)
mysql> select *,weight() as weight from test1 where match('test');