doubi8512 2013-10-04 10:37 采纳率: 0%
浏览 71

Apache Solr drupal模块,用于索引新节点的触发器

I'm running drupal 6 and the Apache solr module (version = "6.x-1.6"). The apache solr index version is 1.40. I currently have a "real" cron job, which calls the cron.php file every half hour, in order to index new nodes (and remove deleted ones etc).

I was wondering.. is it possible to implement a hook or similar so that when creating a node, it will automatically index that node (and delete/update etc)? Such that you don't need to call cron.php periodically?

thanks!

  • 写回答

1条回答 默认 最新

  • douchuanchai2793 2013-10-05 16:46
    关注

    Implementing hook_nodeapi() or something could be a solution but a messy solution, I think it's not what you want.

    You have better to execute a specific cron job for index building and solr commit.

    @see https://drupal.org/node/269381

    评论

报告相同问题?

悬赏问题

  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图2.0 版本点聚合中Marker的位置无法实时更新,如何解决呢?
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题