sphinx

MySQL 5.6 InnoDB Full Text Search

拈花ヽ惹草 提交于 2019-12-20 14:14:34
问题 I realize that MySQL 5.6 is still in beta, but does anyone have experience using the new InnoDB FTS engine? How does it compare to something like Sphinx? Thanks Jason 回答1: Never used Sphinx, but tried MySQL 5.6 FTS on an Innodb table with about 170k rows. Made an FTS index on the name column (contains all names of a person). To find a word in any position of the string MATCH(name) AGAINST("+word*") IN BOOLEAN MODE does work a lot faster (2-3 times in my case) than using name LIKE "word%" OR

Full Text Search with Firebird and Delphi

被刻印的时光 ゝ 提交于 2019-12-20 10:11:20
问题 I'm looking into implementing full text search on our Firebird database. Our requirements are: Every field in several tables should be indexed. When a result is found we should be able to find out the originating table. The index can be stored in the database or in the file system. The results of the search (BigInt primary keys) must be used to join with the original records in the database to display the records in a table. Can anybody recommend a decent way to achieve what we need? I've

Sphinx 2.0.2 Filtering sql_attr_string Attributes

陌路散爱 提交于 2019-12-20 06:29:57
问题 Firstly, let me say that I know that http://sphinxsearch.com/docs/current.html#conf-sql-attr-string says "strings can only be used for storage and retrieval" and that "They can not participate in expressions, be used for filtering, sorting, or grouping"... Having said that, using Sphinx 2.0.2, accessing the index via both the SQL interface (on port 9306) as well as via SphinxSE I am able to sort, at least, on a string attribute I have. So although that doesn't necessarily mean that the

Sphinx search ranking broken?

为君一笑 提交于 2019-12-20 06:06:36
问题 Has anyone ever gotten the Sphinx ranking options to work? I've read the manual and the book but cannot get ranking working at all. From what I understand, ranking simply computes the weights in a different manner, doesn't do any type of sorting. I have my results sorted by @weight (internal sphinx field) and using sort mode extended, which you need for this, yet cannot see any difference between different ranking modes. My config is something like this: $cl->SetMatchMode( SPH_MATCH_EXTENDED2

标准的Python文档字符串格式是什么? [关闭]

痴心易碎 提交于 2019-12-18 17:15:11
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 已关闭 。 这个问题是基于意见的。 它当前不接受答案。 了解更多 。 想改善这个问题吗? 更新问题,以便通过 编辑此帖子 以事实和引用的形式回答。 去年 关闭。 我已经看到了几种用Python编写文档字符串的不同样式,是否有正式的或“同意的”样式? #1楼 是Python; 一切顺利 。 考虑如何 发布您的文档 。 除了您的源代码读者以外,文档字符串是不可见的。 人们真的很喜欢浏览和搜索网络上的文档。 为此,请使用文档工具 Sphinx 。 这是记录Python项目的实际标准。 该产品非常漂亮-请看 https://python-guide.readthedocs.org/en/latest/ 。 “ 阅读文档 ”网站将免费托管您的文档。 #2楼 显然没有人提到它:您还可以使用 Numpy Docstring Standard 。 它在科学界被广泛使用。 numpy 格式 的 说明以及 示例 您有一个狮身人面像扩展程序来渲染它: numpydoc 还有一个呈现的文档字符串看起来如何美丽的示例: http : //docs.scipy.org/doc/numpy/reference/generation/numpy.mean.html 用于解析Google样式文档字符串的Napolean狮身人面像扩展名(在

Connect to SphinxQL through Linux command-line

假装没事ソ 提交于 2019-12-18 10:22:37
问题 I am trying to connect to SphinxQL server through Linux command-line this way: > mysql -P 9306 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) My Sphinx config file has 2 listen entries: listen = 9312 listen = 9306:mysql41 searchd daemon is running: > ps ax | grep searchd 10727 ? S 0:00 /usr/local/sphinx/bin/searchd 10728 ? Sl 0:00 /usr/local/sphinx/bin/searchd Regular search queries work perfectly: > /usr/local/sphinx/bin/search StackOverflow | more Sphinx

sphinx的安装

情到浓时终转凉″ 提交于 2019-12-18 05:27:39
一、 Sphinx简介 Sphinx是由俄罗斯人Andrew Aksyonoff开发的一个全文检索引擎。意图为其他应用提供高速、低空间占用、高结果 相关度的全文搜索功能。Sphinx可以非常容易的与SQL数据库和脚本语言集成。当前系统内置MySQL和PostgreSQL 数据库数据源的支持,也支持从标准输入读取特定格式 的XML数据。 Sphinx的特性如下: a) 高速的建立索引(在当代CPU上,峰值性能可达到10 MB/秒); b) 高性能的搜索(在2 – 4GB 的文本数据上,平均每次检索响应时间小于0.1秒); c) 可处理海量数据(目前已知可以处理超过100 GB的文本数据, 在单一CPU的系统上可 处理100 M 文档); d) 提供了优秀的相关度算法,基于短语相似度和统计(BM25)的复合Ranking方法; e) 支持分布式搜索; f) 支持短语搜索 g) 提供文档摘要生成 h) 可作为MySQL的存储引擎提供搜索服务; i) 支持布尔、短语、词语相似度等多种检索模式; j) 文档支持多个全文检索字段(最大不超过32个); k) 文档支持多个额外的属性信息(例如:分组信息,时间戳等); l) 支持断词; 虽然mysql的MYISAM提供全文索引,但是性能却不敢让人恭维,另外数据库毕竟不是很善于做这样的事情,我们需要把这些活让给更适合的程序去做,减少数据库的压力

ElasticSearch, Sphinx, Lucene, Solr, Xapian. Which fits for which usage? [closed]

你离开我真会死。 提交于 2019-12-17 02:01:18
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm currently looking at other search methods rather than having a huge SQL query. I saw elasticsearch recently and played with whoosh

Choosing a stand-alone full-text search server: Sphinx or SOLR? [closed]

风流意气都作罢 提交于 2019-12-17 01:23:51
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm looking for a stand-alone full-text search server with the following properties: Must operate as a stand-alone server that can

Choosing a stand-alone full-text search server: Sphinx or SOLR? [closed]

一个人想着一个人 提交于 2019-12-17 01:23:26
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm looking for a stand-alone full-text search server with the following properties: Must operate as a stand-alone server that can