ryanb / xapit-sync

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

Consider xapit search conditions #2

Open ryanb opened 15 years ago

ryanb commented 15 years ago

It is possible to customize search query conditions in the xapit call.

xapit :conditions => "visible=1"

These conditions should be taken into consideration when reindexing changes.

For example, if a record is created but doesn't fit into xapit conditions then it should be ignored. If a record is being updated and no longer fits into xapit conditions then the index should be removed.

matiaskorhonen commented 15 years ago

This is the one issue that is currently preventing me from using Xapian/Xapit.