similar to: more_like_this

Displaying 20 results from an estimated 3000 matches similar to: "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 you didn''t expect
2007 Jul 17
2
#more_like_this : strange behaviour
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have the following Problem: 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,
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
2007 Jan 11
5
ASF: cannot determine document number from primary key
I''m getting this 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:
2006 Sep 09
2
acts_as_ferret 0.3.0
Hi, just wanted to officially announce the release of acts_as_Ferret 0.3.0. As you see, I''m trying to catch up with Ferret''s version numbers ;-) svn://projects.jkraemer.net/acts_as_ferret/tags/0.3.0/ or svn://projects.jkraemer.net/acts_as_ferret/tags/stable/ This release is now tagged stable, so in case anybody has used the old stable release via an svn external, please
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
2006 May 18
2
acts_as_ferret 0.2.1
The svn repository for acts_as_ferret has just been tagged with version 0.2.1. This is the first version of aaf to support the 0.9.x branch of Ferret. See http://projects.jkraemer.net/acts_as_ferret/wiki *Features* * High speed full text search across the contents of any Rails model class, without any hassles. The index will be kept up to date automagically while you work with your Rails
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
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
2006 Oct 05
4
search results autocompletion
Dear list, I ''m using a text input field with autocompletion . The suggestions come from a ferret index which is created by getting all the terms belonging to other indices. Here is the code: class Suggestion attr_accessor :term def self.index(create) [Person, Project, Orgunit].each{|kl| terms = self.all_terms(kl) terms.each{|term| suggestion =
2006 Sep 20
5
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/.
2006 Nov 01
8
aaf and stop words; query parser
I''ve been trying to implement acts_as_ferret in my latest project and ran into a snag. If I do a search for ''auditor state'' then the search works perfectly. If I include a stop word, as in ''auditor of state'', then I get no results. I''d prefer not to set stop words to nil and index everything. The solution, that I have yet to attempt, is to use
2007 Mar 09
5
higlighting problem
Hi, I''ve been having a problem getting highlighting to work with aaf. I have a class defined as follows such: class Link < ActiveRecord::Base acts_as_ferret :fields => { :description => { :store => :yes } } end I get back the correct results when I do Link.find_by_contents, however, I''d like to highlight them. If I do something like iterate through the list of
2007 Jan 11
5
stop words in query
Hello all, Quick question, I''m using AAF and the following custom analyzer: class StemmedAnalyzer < Ferret::Analysis::Analyzer include Ferret::Analysis def initialize(stop_words = ENGLISH_STOP_WORDS) @stop_words = stop_words end def token_stream(field, str) StemFilter.new(StopFilter.new(LowerCaseFilter.new(StandardTokenizer.new(str)), @stop_words)) end However when
2006 Nov 17
4
undefined method `exists?''
Anyone ever run into this error message when creating a new FieldInfos? Ferret::Index::FieldInfos.new(:store=>:no) NoMethodError: undefined method `exists?'' for {:store=>:no}:Hash -- Posted via http://www.ruby-forum.com/.
2006 Oct 19
6
not able to install acts_as_ferret
I have an older version installed and want to try the latest ferret/aaf to see if it solves some perf problems, but haven''t been able to get aaf on multiple tries on multiple days now. script/plugin install svn://projects.jkraemer.net/acts_as_ferret/trunk/plugin/acts_as_ferret svn: Can''t connect to host ''projects.jkraemer.net'': Operation timed out Has
2007 Oct 01
4
Need Help with Custom Associations
I''ve read the Rails Envy AAF tutorial at http://railsenvy.com/2007/2/19/acts-as-ferret-tutorial and its given me some really good ideas. My problem lies in having AAF search the target Model''s child tables. I have no problem at all doing something like: acts_as_ferret :fields => [:title, :update_collection, :member_name] def member_name return
2007 Mar 31
5
DRb server & aaf gem
I''m having problems getting the DRb server running with the aaf gem. I tried it with the plugin installed in my application, and it worked. I suspect the problem has something to do with the startup scripts expecting certain files to be in certain relative file paths. Any insights are appreciated, and maybe if you have time you can update the wiki document :) Thanks for a great
2007 Jul 25
17
DRb not starting
Hi, I have my Model as follows: class Mutation < ActiveRecord::Base acts_as_ferret ({:fields => {:description=>{}, :product_id=>{:index => :untokenized}, :product_description=>{}, :product_label_description=>{}, :product_label_free=>{}, :product_product_id_supplier=>{}, :product_description_supplier=>{}, :supplier_description=>{}, :pub_date_sort
2007 Jul 27
5
Mongrel won''t start
I have a win xp box running instant rails. I installed ferret (the win version) and acts_as_ferret seemingly succesfully. I then added "require ''acts_as_ferret''" to the environment.rb file of my project. However, I cannot get webrick/mongrel to start. Can anyone suggest a solution? Rick -- Posted via http://www.ruby-forum.com/.