Forum: Ferret ignored or forgotten values in reindexing

Posted by lists.jc.michel@symetrie.com (Guest)
on 2008-08-27 02:02
(Received via mailing list)
Hi,


Using acts_as_ferret with rails 2.1, I encounter some strange
behaviour in reindexing all records from my model.
Some seem to be ignored. The log generated by reindexing misses some
values; but no error is printed about parsing these strings.

I was alerted by some results missing. I then experimented with sql
search (postgresql).
For a single word, the sql search
MyModel.find(:all, :conditions => ['entry ILIKE ?', "%#{@query}
%"], :limit => 50)
gives always more results than
MyModel.find_with_ferret(@query, {:limit => 50})

How could I do to identify why some values are not indexed ?
Is there a debug log level ?
Is this an already known issue ?


   config.gem 'ferret', :version => '0.11.6'
   config.gem 'acts_as_ferret', :version => '0.4.3'

In my model I have
acts_as_ferret :fields => {:entry => {:store
=> :yes}}, :default_field => :entry, :remote => false

Jean-Christophe Michel
jc.michel@symetrie.com
Posted by Chris Strom (Guest)
on 2008-08-27 02:52
(Received via mailing list)
On Tue, Aug 26, 2008 at 7:53 PM, lists.jc.michel@symetrie.com
<lists.jc.michel@symetrie.com> wrote:
> Using acts_as_ferret with rails 2.1, I encounter some strange behaviour in
> reindexing all records from my model.
> Some seem to be ignored. The log generated by reindexing misses some values;
> but no error is printed about parsing these strings.
> I was alerted by some results missing.

I have seen this problem as well.  Same versions of ferret/aaf
(0.11.6/0.4.3).  Differences are Rails 2.0 and using SQL Server.

The limited amount of investigation that I have been able to do
suggests a fence post error in the bulk index pagination.  Of 2000+
objects, 2 are missing.  I'm only basing the fence post conjecture on
the number of missing objects & the default pagination window (1000).
I have not even had a chance to investigate changing the window size,
let alone investigate deeper.

Hope that helps (as least you're not alone).  I should have some more
time tomorrow to investigate.

-Chris
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.