> Some heuristics to get an idea about which language you're working on
> right now might be a good idea to select a proper analyzing algorithm.
>

I think that's probably the only way to do this effectively, but how can 
I specify a particular analyzer on a per-model-instance basis?  I only 
recall seeing that aaf allows analyzer specification on a per-model 
basis.

Or perhaps you were thinking of a single analyzer that does heuristics 
itself and decides how to tokenized based on the input string?

> No, that's correct. You can force a rebuild by calling
> Model.rebuild_index from the console.
> 

OK, fair enough.

>> Further, are you saying that model creations during the rebuild won't
>> block (I guess they realize that a rebuild is already happening and just
>> return immediately)?
> 
> Unfortunately the DRb server doesn't realize this, yet. As Ryan wrote, I
> plan to rework the re-indexing stuff in the near future, most likely
> then there will be some kind of index rotation and a queue remembering
> model updates that occured while a rebuild is going on.
> 

So how would you suggest that ever get the index "caught up"?  The first 
rebuild_index will probably take many hours, and, while that's building, 
thousands on new model instances will be created.  Since we can't turn 
on automatic indexing (at least until the index is up to date), how do 
we get the index up to date?

> Index updates are synchronized as there only may be one thread writing
> to the index at a time. In case immediate indexing of new or updated
> records is not needed, I see no problem in doing this later from cron or
> backgroundrb based on some flag or timestamp.
> 
> Ferret *is* fast, but you also have to take into account the DRb round
> trip time, so this really could make sense for a chat application.
>

Yeah, sounds like we would have to do it periodically, and tell users to 
expect a few minutes of index latency.  That's fine- it certainly beats 
the typical latency that already we get from Google crawlers, which are 
currently our only local search functionality.

Best Regards,

Danny

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to