search for: more_like_this

Displaying 11 results from an estimated 11 matches for "more_like_this".

2006 Dec 01
2
more_like_this not working?
Hi all, using ferret 0.10.13 and aaf trunk, i cannot get more_like_this to work. I read other posts on this forum related to that, but that did not solve it. I have a model Question with a field question_text. I do: ----------------------------------------------- >> q = Question.find(:first) >> q.more_like_this NoMethodError: You have a nil object when y...
2007 May 09
6
more_like_this
Hi, I''m using acts_as_ferret in my rails application and I''d like to use more_like_this to retrieve some ''similar'' item suggestions. I have a class ''items'' which has a status field and I need to retrieve items that only have one of the two possible statuses. Looking at the more_like_this method indicates it supports an :append_to_query option that...
2007 Jul 17
2
#more_like_this : strange behaviour
...I created a fairly simple sample project to try out acts_as_ferret and present the results. The test set is relatively easy: I have extracts from 6 Wikipedia-Articles about several Topics, which are copied into a model that has two fields: title and text. This works quite well, until I try to use #more_like_this, which returns all of the other articles, even if they have nothing to do with the active article. I debugged a bit and found out that the query build by #more_like_this is nothing more then "-id:<id of the active record>". (so the _result_ is correct) To try that out on the consol...
2006 Sep 09
2
acts_as_ferret 0.3.0
...block that should be executed without indexing, and optionally have aaf index your record after the whole block is finished. Please see http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage for usage notes. - no new feature, but didn''t work until now with 0.10.x - the more_like_this instance method now works as expected again. have fun! 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...
2007 Feb 16
1
find conditions in more_like_this
Hello. I''m trying to use acts_as_ferret to index with set conditions. Ideally I could do something like: acts_as_ferret :fields => [ :title, :body ], :conditions => ["enabled = 1"] But would settle for being able to do: @similiar_blogs = @blog.more_like_this :field_names => [ :title, :body ], :conditions => "enabled=1" What is the best way of accomplishing this with using more_like_this, or even better -- applying these conditions to the model to be indexed globally. Thanks in advance for any advice or suggestions. -- Posted via htt...
2007 Nov 05
1
Segmentation Fault in more_like_this.rb
I''ve been seeing some core dumps coming from ferret_server: acts_as_ferret/lib/more_like_this.rb:170: [BUG] Segmentation fault ruby 1.8.6 (2007-03-13) [i386-freebsd6] I''m running the latest build of ferret (0.11.4-rc5). Line 170 in more_like_this.rb is: freq = reader.doc_freq(field_name, word) which is calling into the ferret C code (if I''m reading this correctly)....
2007 Jan 11
5
ASF: cannot determine document number from primary key
...his exception from acts_as_ferret: A RuntimeError occurred in search#similar: cannot determine document number from primary key: #<MyClass:0x9feba20> [RAILS_ROOT]/vendor/plugins/acts_as_ferret/lib/instance_methods.rb:132:in `document_number'' As a result of this call: object.more_like_this The relevant backtrace: [RAILS_ROOT]/vendor/plugins/acts_as_ferret/lib/instance_methods.rb:132:in `document_number'' [RAILS_ROOT]/vendor/plugins/acts_as_ferret/lib/more_like_this.rb:64:in `more_like_this'' /usr/local/lib/ruby/1.8/monitor.rb:229:in `synchronize'' [R...
2006 Aug 24
2
acts_as_ferret for Ferret 0.10
Hi all, the current acts_as_ferret trunk is now ported to Ferret 0.10. Get it while it''s hot at svn://projects.jkraemer.net/acts_as_ferret/trunk/plugin Nearly everything works, besides this: - all queries are ORed (no way to tell the QueryParser to build AND queries by default) - more_like_this is broken I''m working with Dave to fix these things soon. The last Ferret 0.9.x compatible version of acts_as_ferret is 0.2.3, located at svn://projects.jkraemer.net/acts_as_ferret/tags/0.2.3 have fun, Jens -- webit! Gesellschaft f?r neue Medien mbH www.webit.de Dipl.-Wirtsc...
2006 May 18
2
acts_as_ferret 0.2.1
...t to index the result of any instance method of your model class. * Further customization of the indexing process can be achieved by overriding the to_doc instance method in your model class, which is supposed to return the Ferret document object to be stored in the index. * Use my_model_instance#more_like_this to retrieve objects having similar contents like my_model_instance. Great for suggesting related pages to your readers, or related products to your customers. -- Posted via http://www.ruby-forum.com/.
2007 May 10
5
Segmentation fault on large index
I''m getting a segmentation fault on a large index (15GB). I''m running ferret 0.11.4 on OpenSuSE 10.2 with ruby 1.8.6. The segmentation fault appeared after I optimized the index, see further below for the error message I got before that. Ferret works perfectly on other (smaller) indexes. Is this a known issue, and if so, is there a workaround? --------------------- after
2006 Aug 26
7
Erratic behavior with ferret 0.95 and acts_as_ferret
I am getting this issue also... Does anyone know what this is? When will Acts as Ferret be available for v10? Thanks for your help in desperation! Caspar wrote: > Okay previous post related to me trying to fix this problem with an > upgrade to ferret 0.10.0 but acts as ferret is obviously not compatible > with this new version of ferret. > My app is about to go into production and