对 70,000 个节点建立索引(对于搜索索引)最简单的方法是什么?

发布于 2024-09-17 21:19:14 字数 107 浏览 1 评论 0原文

在 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 技术交流群。

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

发布评论

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

评论(2

情话难免假 2024-09-24 21:19:14

对于如此数量的节点,我会选择另一种搜索解决方案,而不是 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.

So要识趣 2024-09-24 21:19:14

您可以通过创建 php 代码(在节点中(小心)!或在包含引导程序的 php 文件中)手动执行此操作,并在运行脚本之前设置 php 的最大时间。“max_execution_time”或使用 set_time_limit (XXX) 循环中:

  $result = db_query('SELECT nid from {node} WHERE /*..HERE IS YOUR CONDITION..*/');
  while ($node = db_fetch_object($result)) {
    _node_index_node($node);
  }

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:

  $result = db_query('SELECT nid from {node} WHERE /*..HERE IS YOUR CONDITION..*/');
  while ($node = db_fetch_object($result)) {
    _node_index_node($node);
  }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文