狮身人面像搜索 MVA

发布于 2025-01-13 15:37:37 字数 410 浏览 3 评论 0原文

我有一些 sphinx.conf 文件,我想在其中添加 MVA

   sql_query = \
SELECT ps.id as id, ps.ido as ido, ps.idu as idu\
FROM products_search as ps 


sql_attr_uint = ido
sql_attr_uint = idu
sql_attr_multi = uint idattr from query \
SELECT id,idattr FROM products_attributes WHERE idoffer = ido \

,可以在 products_attributes 的一个文件中创建具有多个 id 的 sql_attr_multi ,并使用查询 abowe 中的“WHERE”clouse 和“ido”?

I'v got some sphinx.conf file where I want to add MVA

   sql_query = \
SELECT ps.id as id, ps.ido as ido, ps.idu as idu\
FROM products_search as ps 


sql_attr_uint = ido
sql_attr_uint = idu
sql_attr_multi = uint idattr from query \
SELECT id,idattr FROM products_attributes WHERE idoffer = ido \

it's possible to create sql_attr_multi with multiple ids in one filed from products_attributes with 'WHERE' clouse and 'ido' from query abowe ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

Spring初心 2025-01-20 15:37:37

好的,我找到了解决方案


sql_attr_multi = uint idattr from query;
SELECT ps.ido,pa.idattr FROM products_search as ps JOIN products_attributes as pa on ps.ido = pa.idoffer

ok, I found the solution


sql_attr_multi = uint idattr from query;
SELECT ps.ido,pa.idattr FROM products_search as ps JOIN products_attributes as pa on ps.ido = pa.idoffer

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文