I am new to ferret and am just reading about it in the O’reilly
shortcuts as well as other web resources. My app is a Rails app and so
I am looking into acts_as_ferret as well. There are some questions for
which I couldn’t find answers in the material I have read so far so
I’d appreciate any help on these from the list.
A bit of a background. My app will have 10,000 - 50,000 documents.
These are ‘owned’ by users and the groups they belong to (like a file
system). So the queries will have to be restricted to those documents
owned by the groups the user belongs to. I have a group_id in each
record and the session has the group_id’s of the groups the user
belongs to in an array.
If I add acts_as_ferret :fields => [:group_id, :document_text] can I
do an activerecord search like…
Document.find(:all, :conditions => [‘group_id in (?)’,
These documents are dynamic, so they are deleted, updated, edited etc.
How do I handle indexing in these circumstances? Delete all and
recreate -or- is there a way to just delete an index by document_id
and recreate it just for that document.
I am going to try this in the app but before I took the plunge I
thought I’d ask first.
PS: the app will be used by separate client companies, so on one
server we will host the app in multiple virtual hosts(separate rails
app instance for each). Can I share a drb for all clients or do I need
one per client.