处理 Sphinx 结果中的星号

发布于 2024-09-26 05:53:43 字数 345 浏览 0 评论 0原文

我正在使用 Sphinx 来搜索 MySQL。

Sphinx 返回的搜索结果之一是 M*A*S*H,如热门电视节目中所示。

alt text

我面临的问题是返回 M*A*S*H几乎适用于任何使用 Sphinx 进行的查询。 我猜这是由于星号造成的。如果不是,那么问题可能是什么?

如果星号导致了我的问题,我该如何解决此问题,以免每次查询都返回 M*A*S*H

I'm using Sphinx to search MySQL.

One of the results Sphinx returns for a search is M*A*S*H, as in the hit television show.

alt text

The problem I'm facing is that M*A*S*H is returned for nearly any query made with Sphinx. I'm guessing this is due to the asterisks. If not, then what could the problem be?

If the asterisks are causing my problem, how can I work around this to not have M*A*S*H returned for every query?

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

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

发布评论

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

评论(4

感受沵的脚步 2024-10-03 05:53:44

这个问题似乎不再存在,尽管我不知道为什么。我确信我的 sphinx.conf 中一定有问题。如果其他人有这个问题,请在这里告诉我,我会尝试相应地更新这个答案。

This problem no longer seems to exist, though I don't know why. I'm sure that something must have been amiss in my sphinx.conf. If someone else has this issue, let me know here and I'll try to update this answer accordingly.

清秋悲枫 2024-10-03 05:53:44

在任何情况下,您都可以使用例外文件来指定您可能想要包含在搜索中的任何单词。每当更改文件时,请记住重新索引。

您可以在此处阅读详细信息: http://sphinxsearch.com/docs/1.10/conf-异常.html

In any case you can use the exceptions file to specify any word you may want to include in your searches. Remember to reindex whenever you change the file.

You can read the details here: http://sphinxsearch.com/docs/1.10/conf-exceptions.html

烈酒灼喉 2024-10-03 05:53:43

确保 charset_table 中包含星号。

charset_table = <blah blah blah>, U+002A

http://sphinxsearch.com/docs/current.html#conf-charset-table

Make sure that asterisks are included in the charset_table.

charset_table = <blah blah blah>, U+002A

http://sphinxsearch.com/docs/current.html#conf-charset-table

聽兲甴掵 2024-10-03 05:53:43

此 Sphinx 函数 (EscapeString) 是否执行您想要的操作

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