ryanb / xapit

High level Ruby library for interacting with Xapian, a full text search engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatic updates of the search index

matiaskorhonen opened this issue · comments

Is there someway of checing the age of the index, or of updating it at intervals?

I've tried Googling for some sort of best practice for this, but have so far come up with nothing.

rails_cron would have seemed to have been perfect for the job, but that seems to have gone the way of the dodo... Any recommendations?

You can just setup a cron job to run the xapit:index task at a certain interval. However the app would need to be restarted so it reads the new database. That is definitely not efficient and I am planning to improve this. See the ticket #6 on updating an existing index. Closing this issue since it is mostly a duplicate of that.