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 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?