Full text searching and Python(全文搜索和 Python)
问题描述
有人可以帮我推荐一个支持 Python 的全文搜索引擎吗?
Can someone help me out with some suggestion for a full-text searching engine that supports Python?
现在我们有一个 MySQL 数据库,我想添加一个功能,让全文搜索引擎索引该数据库中某些表中的某些文本.Web 应用程序将使用此文本数据来搜索数据库中的相应记录.例如,在我们的客户表中索引客户名称信息,使用 Web 应用程序进行全文搜索以获取客户的 MySQL 记录.
Right now we have a MySQL database in place and I'd like to add the ability to have a full-text search engine index some of the text in some of the tables in this database. This text data would be used by a web application to search for the corresponding records in the database. For instance, index the customer name information in our customer table, full text search that with the web application to get the MySQL record for the customer.
我(简要地)看过 Lucene、Swish-E 和 MongoDB 以及其他几个,但考虑到以下几点,我不确定哪个对我来说是个好选择:
I've looked (briefly) at Lucene, Swish-E and MongoDB, and few others, but I'm not sure what would be a good choice for me considering a couple of things:
- 我不是 Java 人(尽管我已经编程了很长时间),
- 我们只想搜索相对较小的数据集,
- 我们正在寻找 MySQL 数据库中的文本索引,
- 并希望该索引能够半实时更新.
任何提示、提示或指示将不胜感激!
Any hints, tips or pointers would be greatly appreciated!
推荐答案
看看Whoosh.我听说它不能很好地扩展(也许现在已经解决了),但对于小型收藏,它可能很有用.
Have a look at Whoosh. I've heard it doesn't scale up terribly well (maybe that's fixed now) but for small collections, it might be useful.
对于可扩展的解决方案,请考虑将 Lucene 与 PyLucene 或 Jython 一起使用.
For a scalable solution, consider using Lucene with PyLucene or Jython.
这篇关于全文搜索和 Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:全文搜索和 Python


- 导入具有可变标题的 Excel 文件 2021-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- SQL 临时表问题 2022-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 更改自动增量起始编号? 2021-01-01