# Ignored or forgotten values in reindexing

**URL:** <https://www.ruby-forum.com/t/ignored-or-forgotten-values-in-reindexing/146954>\
**Category:** Ferret\
**Created:** [August 27, 2008, 2:02am UTC](https://www.ruby-forum.com/t/ignored-or-forgotten-values-in-reindexing/146954 "2008-08-27T02:02:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 27, 2008, 2:02am UTC](https://www.ruby-forum.com/t/ignored-or-forgotten-values-in-reindexing/146954/1 "2008-08-27T02:02:05Z")

</div>

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 M.  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 27, 2008, 2:52am UTC](https://www.ruby-forum.com/t/ignored-or-forgotten-values-in-reindexing/146954/2 "2008-08-27T02:52:23Z")

</div>

On Tue, Aug 26, 2008 at 7:53 PM, removed\_email\_address@domain.invalid  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
