Hi dave, and everyone ;) I''ve finished my extension to export Index.search(..) loaded results into json. Here''s a little benchmark of what i''ve done :>> Benchmark.realtime { INDEX.search(query, :limit => 1000).hits.each { |x| INDEX[x.doc].load.to_json } }=> 7.38711595535278>> Benchmark.realtime { INDEX.search(''type:hardware'', :limit => 1000).to_json }=> 0.471335172653198 I patched that directly in /usr/lib/ruby/gems/1.8/gems/ferret-0.10.10/ext/r_search.c so i wanted to submit my modifications today, so i did : svn checkout svn://davebalmain.com/ferret/tags/REL-0.10.11 and tried to make my modifications into REL-0.10.11/ext/r_search.c where i discovered a T O T A L L Y different file... I tried to find the good one, but nothing.. ? And when my mate installed 0.10.11, he had the good file in /usr/lib.../ext/ :-? Could you tell me what to checkout or dunno, the way to patch this ? :/ Thanks by advance, Jeremie ''ahFeel'' BORDIER -- Posted via http://www.ruby-forum.com/.
On 10/12/06, ahFeel <ahfeel at rift.fr> wrote:> Hi dave, and everyone ;) > > I''ve finished my extension to export Index.search(..) loaded results > into json. > Here''s a little benchmark of what i''ve done : > > >> Benchmark.realtime { INDEX.search(query, :limit => 1000).hits.each { |x| INDEX[x.doc].load.to_json } } > => 7.38711595535278 > >> Benchmark.realtime { INDEX.search(''type:hardware'', :limit => 1000).to_json } > => 0.471335172653198 > > I patched that directly in > /usr/lib/ruby/gems/1.8/gems/ferret-0.10.10/ext/r_search.c > so i wanted to submit my modifications today, so i did : > svn checkout svn://davebalmain.com/ferret/tags/REL-0.10.11 > and tried to make my modifications into REL-0.10.11/ext/r_search.c where > i discovered a T O T A L L Y different file... > I tried to find the good one, but nothing.. ? > > And when my mate installed 0.10.11, he had the good file in > /usr/lib.../ext/ :-? > > Could you tell me what to checkout or dunno, the way to patch this ? :/ > > Thanks by advance, > Jeremie ''ahFeel'' BORDIERCheck out like this: svn co svn://www.davebalmain.com/exp/ ferret This will give you the working copy which should be fine. I''m not sure why checking out the tagged version didn''t work although I haven''t tried it myself. Dave
David Balmain wrote:> svn co svn://www.davebalmain.com/exp/ ferret >Great ! Looks more familliar to me =) I''ve patched this code but i need to make just some little modifications, and i''ll trac you the diff !> This will give you the working copy which should be fine. I''m not sure > why checking out the tagged version didn''t work although I haven''t > tried it myself.You should have a look at that, it''s really strange.. in your Trac the directory is marked as modificated 20hours ago but when you go into it, the last modifications are 3 weeks ago :\> > DaveThank you again for what you do and your fast usefull answers ! Jeremie ''ahFeel'' BORDIER -- Posted via http://www.ruby-forum.com/.