ryanb / xapit-sync

Rails plugin to automatically reload a Xapian database when models change.
MIT License
12 stars 3 forks source link

Feature Request : Sync change base defined attributes #6

Open kpitn opened 15 years ago

kpitn commented 15 years ago

Acutally i use Restfull athentication in my project, and the User object is update on each request. So there is many User Update in the xapit_change tables.

My model is like this :

  xapit do |index|
    index.text :user_firstname,:user_lastname,:login
  end

It could be great if sync appends only on [:user_firstname,:user_lastname,:login] change and not other attributes.

Or if we can add some parameters :

  xapit do |index|
    index.text :user_firstname,:user_lastname,:login
    index.changes :login
  end

sync appends only on :login change and not other attributes.

cveneziani commented 14 years ago

I'm also interested in this issue. Any news?