hi jens, updated to trunk, but still having the same issue
in my Book.rb model i have the acts_as_ferret line with no attributes:
acts_as_ferret. to keep things simple it's the only model using acts_as_ferret
right now.
my controller code is based on the example in the comments above
find_id_by_contents:
@res << Book.find_id_by_contents(params[:search][:search_term])
if i zero both the index and the db, then add a single book, one (and only one)
book appears in the 'books' table, but the line above from the controller
returns 3 results from the newly-created index at index/development/Book.
it's coming from somewhere in the plugin, i think, because when i add this line
to find_id_by_contents, right after the call to ferret_index.search(q, option):
logger.debug("hits is: #{hits.size}")
this shows up in the log:
hits is: 3
best,
john
Quoting Jens Kraemer <[EMAIL PROTECTED]>:
> Hi John,
>
> On Wed, Apr 05, 2006 at 12:09:37AM -0400, John McGrath wrote:
> > i'm using Ferret 0.9.0 with acts_as_ferret (the one from svn.jkraemer.net),
> and
> > i'm getting duplicate results, as described in this thread:
> > http://rubyforge.org/pipermail/ferret-talk/2005-December/000048.html
> >
> > is there a way to configure the indexes created by acts_as_ferret to use
> :key =>
> > :id, as described in that thread? i've poked around in the code, and had
> trouble
> > even finding where the index was being created.
>
> acts_as_ferret uses the id as a key by default. Could you please check
> if this problem still occurs with the current trunk (located at
> svn://projects.jkraemer.net/acts_as_ferret/trunk/plugin/acts_as_ferret )
>
>
> Cheers,
> Jens
>
>
> --
> webit! Gesellschaft für neue Medien mbH www.webit.de
> Dipl.-Wirtschaftsingenieur Jens Krämer [EMAIL PROTECTED]
> Schnorrstraße 76 Tel +49 351 46766 0
> D-01069 Dresden Fax +49 351 46766 66
> _______________________________________________
> Ferret-talk mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ferret-talk
>
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk