对 70,000 个节点建立索引(对于搜索索引)最简单的方法是什么?
在 Drupal 中索引(对于搜索索引)70.000 个节点的最简单方法是什么?
我每 3 分钟运行一次 cron(每次运行 500 个节点),但似乎没有那么快。
谢谢
What's the easiest way to index (for the search index) 70.000 nodes in Drupal ?
I'm running cron every 3 minutes (500 nodes per run) but it doesn't seem to be that fast.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于如此数量的节点,我会选择另一种搜索解决方案,而不是 drupal 核心中内置的搜索解决方案。
在不了解您的内容的情况下,我建议您看一下 Apache Solr for Drupal。
Drupal Apache Solr 模块经过了良好的测试和维护。
另一个好处是比 drupal 核心搜索可以提供的更好的搜索结果。
For that amount of nodes I would go for another search solution, than the one built into drupal core.
Without knowing anything about your content, I would suggest you take a look at Apache Solr for Drupal.
The Drupal Apache Solr module is well tested and maintained.
An added benefit would be better search results than what drupal core search can provide.
您可以通过创建 php 代码(在节点中(小心)!或在包含引导程序的 php 文件中)手动执行此操作,并在运行脚本之前设置 php 的最大时间。“max_execution_time”或使用 set_time_limit (XXX) 循环中:
You can do manually it by creating php code (in node (be carefull)! or in php-file with including bootstrapping), and before running script set maximum time for php."max_execution_time" or use set_time_limit(XXX) in cycle: