David Wennergren
2006-Sep-20 14:22 UTC
[Ferret-talk] acts_as_ferret limit on multi_search not working?
I''m using acts_as_ferret to do a query like this: Model1.multi_search("my query",[Model2,Model3], :limit => 2) No matter what number i set limit to I get 10 items in the resultset. Am I doing something wrong? Thanks/David -- Posted via http://www.ruby-forum.com/.
Jens Kraemer
2006-Sep-20 18:49 UTC
[Ferret-talk] acts_as_ferret limit on multi_search not working?
On Wed, Sep 20, 2006 at 04:22:18PM +0200, David Wennergren wrote:> I''m using acts_as_ferret to do a query like this: > > Model1.multi_search("my query",[Model2,Model3], :limit => 2) > > No matter what number i set limit to I get 10 items in the resultset. Am > I doing something wrong?nothing, this is supposed to work. what version of Ferret/aaf do you use ? Jens -- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66
David Wennergren
2006-Sep-21 09:58 UTC
[Ferret-talk] acts_as_ferret limit on multi_search not working?
Jens Kraemer wrote:> On Wed, Sep 20, 2006 at 04:22:18PM +0200, David Wennergren wrote: >> I''m using acts_as_ferret to do a query like this: >> >> Model1.multi_search("my query",[Model2,Model3], :limit => 2) >> >> No matter what number i set limit to I get 10 items in the resultset. Am >> I doing something wrong? > > nothing, this is supposed to work. what version of Ferret/aaf do you > use ? > > Jens > > -- > webit! Gesellschaft f?r neue Medien mbH www.webit.de > Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de > Schnorrstra?e 76 Tel +49 351 46766 0 > D-01069 Dresden Fax +49 351 46766 66I''m using ferret 0.10.4 and aaf 0.3.0. I''ll try to make it into a testcase so it easier to reproduce. This is my actual query:>> Pressrelease.multi_search("con*",[Event,Image],:limit => 2).size=> 10 /david -- Posted via http://www.ruby-forum.com/.
Joshua Bates
2006-Oct-05 00:10 UTC
[Ferret-talk] acts_as_ferret limit on multi_search not working?
I''m getting the exact same behavior ferret 0.10.9 aaf 0.3.0 joshua On 9/21/06, David Wennergren <david.wennergren at gmail.com> wrote:> > Jens Kraemer wrote: > > On Wed, Sep 20, 2006 at 04:22:18PM +0200, David Wennergren wrote: > >> I''m using acts_as_ferret to do a query like this: > >> > >> Model1.multi_search("my query",[Model2,Model3], :limit => 2) > >> > >> No matter what number i set limit to I get 10 items in the resultset. > Am > >> I doing something wrong? > > > > nothing, this is supposed to work. what version of Ferret/aaf do you > > use ? > > > > Jens > > > > -- > > webit! Gesellschaft f?r neue Medien mbH www.webit.de > > Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de > > Schnorrstra?e 76 Tel +49 351 46766 0 > > D-01069 Dresden Fax +49 351 46766 66 > > I''m using ferret 0.10.4 and aaf 0.3.0. I''ll try to make it into a > testcase so it easier to reproduce. > > This is my actual query: > > >> Pressrelease.multi_search("con*",[Event,Image],:limit => 2).size > => 10 > > /david > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20061004/cfd348ed/attachment-0001.html
Joshua Bates
2006-Oct-05 00:16 UTC
[Ferret-talk] acts_as_ferret limit on multi_search not working?
and I just found the culprit... Line 27 of multi_index.rb searcher.search_each(query, options={}, &block) should be searcher.search_each(query, options, &block) joshua On 10/4/06, Joshua Bates <joshuabates at gmail.com> wrote:> > I''m getting the exact same behavior > ferret 0.10.9 > aaf 0.3.0 > > joshua > > On 9/21/06, David Wennergren < david.wennergren at gmail.com> wrote: > > > > Jens Kraemer wrote: > > > On Wed, Sep 20, 2006 at 04:22:18PM +0200, David Wennergren wrote: > > >> I''m using acts_as_ferret to do a query like this: > > >> > > >> Model1.multi_search("my query",[Model2,Model3], :limit => 2) > > >> > > >> No matter what number i set limit to I get 10 items in the resultset. > > Am > > >> I doing something wrong? > > > > > > nothing, this is supposed to work. what version of Ferret/aaf do you > > > use ? > > > > > > Jens > > > > > > -- > > > webit! Gesellschaft f?r neue Medien mbH www.webit.de > > > Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de > > > Schnorrstra?e 76 Tel +49 351 46766 0 > > > D-01069 Dresden Fax +49 351 46766 66 > > > > I''m using ferret 0.10.4 and aaf 0.3.0. I''ll try to make it into a > > testcase so it easier to reproduce. > > > > This is my actual query: > > > > >> Pressrelease.multi_search("con*",[Event,Image],:limit => 2).size > > => 10 > > > > /david > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Ferret-talk mailing list > > Ferret-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/ferret-talk > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20061004/99fa3d34/attachment.html
Jens Kraemer
2006-Oct-05 07:42 UTC
[Ferret-talk] acts_as_ferret limit on multi_search not working?
On Wed, Oct 04, 2006 at 06:16:36PM -0600, Joshua Bates wrote:> and I just found the culprit... > Line 27 of multi_index.rb > > searcher.search_each(query, options={}, &block) > > should be > > searcher.search_each(query, options, &block)yeah, this has been fixed in trunk a while ago, I''ll try to push out a new release soon. Jens -- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Kr?mer kraemer at webit.de Schnorrstra?e 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66