Displaying 20 results from an estimated 20000 matches similar to: "getting fuzzy search to work"
2006 Sep 19
2
acts_as_ferret and Fuzzy Searching
Hi there,
    I''d like to be able to tune the results of a Fuzzy search in a rails 
application. I''ve tried setting the following in my environment.rb file.
Ferret::Search::FuzzyQuery.default_min_similarity = 0.75
Ferret::Search::FuzzyQuery.default_prefix_length = 2
     When I go into the console, I can see those values as the default 
but when I run a search like
2006 Aug 08
1
acts_as_ferret to search partial phrases and fuzzy
Hi All,
I was wondering if anyone had experience of extending AAF plugin for 
Rails to implement a broader query ?
The documentation and the demo provided  on the 
http://projects.jkraemer.net/acts_as_ferret/ wiki seems to only match 
full text queries, or partial when using a * wildcard.
Ideally, I am trying to acheive something similar to the following 
(pseudo code):
  def search
    @query
2007 Jan 02
4
Inconsistant Search Results
Hi,
I have this maddening strange bug using acts_as_ferret. If I search for
a given phrase (let''s say "xyz") I get one set of results (lets call
them set A). I search  for xyz again and I get set A again. I search for
xyz a third time and I get a different set (set B).
I can keep executing the search query and my result sets continue to
cycle a-a-b-a-a-b-a-a-b.
It''s
2007 Mar 28
7
Newbie problem on production server
Hi,
I just installed ferret for the first time and integrated it with my
app.  On my dev machine it''s fine but on my production server I get this
when I call find_by_contents():
Processing LinksController#results (for 24.185.105.59 at 2007-03-28
05:28:36) [POST]
  Session ID: 3f2dc7c17147c0e52178ba697a119833
  Parameters: {"commit"=>"Search",
2007 Nov 16
1
problem with searching plurals (with apostrophe)
hello guys,
i am using acts_as_ferret plugin(0.4.1 Latest) with ferret gem(0.11.4 Latest)
on rails 1.2.5 and ruby 1.8.6(UBUNTU Gutsy)
i have this
  :Stores Model
   acts_as_ferret :fields => {:name   => { :boost => 2 ,:store => :yes},
                             :short_desc   => { :boost => 1.5,:store =>
  :yes },
                             :tag_list => {:boost => 1
2007 Apr 06
1
fuzzy-ness to searches
Hi. I didn''t notice if topic has already been discussed, but I was
wondering if there was a way to make ferret match only part of a search
term. My initial thought was some sort of filter, but I''m unsure of
where to begin.
An example in the comments of the acts_as_ferret tutorial at RailsEnvy
(http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial) suggests:
To return the
2007 Jul 19
1
Acts_As_Ferret only returns results when searching for "*"
Hey, I''m probably just missing something really obvious but I''ve been
stuck on this problem for a while now and I''m not getting anywhere.
I have installed the acts_as_ferret gem, as well as ferret according to
the tutorial on RailsEnvy.  My model, controller, and environment.rb
files have all been modified as per that turotial.  However any attempts
to use the
2007 May 30
2
How to search with limit by field
Hello,
I have a ferret index with 2 fields:
Acts_as_ferret :fields => [:client, :content]
If I do model.find_by_contents(query) I obtain all results by the query
but I would like to obtain 3 results for each client.
Any ideas?
Thanks for all.
-- 
Posted via http://www.ruby-forum.com/.
2006 Nov 06
1
NameError uninitialized constant Ferret::Index::FieldInfos
Hi Everyone,
I''ve a RoR application. I am trying to build full text search capability 
into it. I installed Ferret. After that I installed the act_as_ferret 
plugin.  I''ve also put  the acts_as_ferret inside the <model>.rb file . 
I''m using the find_by_contents to get the search results.
I''m getting the following error. I''ve no clue and I
2006 Mar 15
4
ActiveRecord::RecordNotFound in search results act_as Ferret
Hello,
I''ve installed the Ferret gem and also got the act_as_ferret code from 
the wiki.
I''ve set up my model "Branch" to act as ferret using the code below.
acts_as_ferret :options => {:fields => [''name'', ''body_text'', ''address'']}
I''ve also set up a ferret_controller with the code below
def find
 
2007 May 05
4
Stop words, fields, StandardAnalyzer quagmire
Hello,
I''m using: Ruby 1.8.6, Rails 1.2.3, ferret 0.11.4, acts_as_ferret from
svn stable.
I''ve had quite a day wrestling with trying to remove the use of
stopwords.  The problem was that when searching for words like "no" or
"the", no results were found.  I found a confusing thing behavior that
has taken me some time to figure out, and I hope sharing it
2007 Apr 30
1
Can''t search fields with space
Hi,
I have a user model that has a city field which is searchable using
acts_as_ferret.
But I can''t get it to return any result whether I use
:city => {:store => :no, :index => :untokenized},
or
:city => {:store => :no} in my User model''s acts_as_ferret option
>>> User.find_by_contents("city:(cal poly)")
=>
2007 Apr 22
0
rename error using rebuild_index in console after searching
Hi,
I use ruby console to experiment acts_as_ferret, but I ran into file
rename error when I  try to rebuild index after doing a search.
is this normal?  I am using Ferret 0.10.9 in windows XP.
Loading development environment.
>> Address.rebuild_index
=> {}
>> Address.find_by_contents(''US'')
=> #<ActsAsFerret::SearchResults:0x4f2ffcc @total_hits=2,
2006 Nov 27
2
find_conditions in acts_as_ferret find_by_contents
Hi all,
Every time I try to add options for the find_conditions argument of
find_by_contents I get the following:
a = AnnotatedLink.find_by_contents(''test'', {}, {:conditions =>
''category_id IS NOT NULL''})
>> NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while
2006 May 18
1
multi_search problem
I am running into the following error when I try to search across 
multiple models with multi_search()  I have rebuilt the indices and can 
search on each model individually using the Rails console.
Here is the output from the console.
>> Post.multi_search(''new'', [Message, WikiPage])
ArgumentError: wrong number of arguments (1 for 0)
        from 
2007 Apr 01
2
strange behavior after switching to DRb server
After switching to the DRb server, I am experiencing strange behavior  
when sorting on score. My app was working as expected before the switch.
Both before and after the switch, my app sorts properly on other  
fields, such as date.
For sorting on score, I am using the following option  
find_by_contents option:
:sort => Ferret::Search::SortField::SCORE
Before switching to DRb, this worked
2006 Jul 09
3
acts_as_ferret.. what does it actually do?
Okay in this plea for help I''m going to repeat some of what i posted 
before but with a larger amount of background info in the hope that i 
can get a decent grip on ferret before it wriggles away..
Firstly, what does installing the acts_as_ferret plugin actually do? I 
install it and add it to my model and then the index is automatically 
generated and a few methods are added to it and
2007 Sep 07
4
Ferret DRB - can add/edit index, but can''t search
I''m trying to use the Ferret DRB server to avoid concurrency issues when
using multiple mongrels.  I can successfully add and edit data on my
index via the DRB server, however, when I search the index, I get the
following error:
DRb::DRbConnError (DRb::DRbServerNotFound):
    /usr/lib/ruby/1.8/drb/drb.rb:1647:in `current_server''
    /usr/lib/ruby/1.8/drb/drb.rb:1709:in
2007 Jul 18
5
Strange search result with conditions in find_by_contents
Hi, guys:
Strange search result with conditions in find_by_contents!
first of all, i''ve installed the acts_as_ferret to my project vender
folder by ''ruby script/plugin install
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret''
in my SearchController
def searchforum
if !params[:doSearch].nil?
if params[:searchTerms].nil? || params[:searchTerms] ==
2007 Sep 24
2
ferret fuzzy matches
Hi guys,
Is there some way of getting ferret matches string, when i do a fuzzy
search?
The scenario is this:
1. The user search for ''show''
2. Nothing was found
3. So I do a fuzzy search, passing ''show~''
4. It gives me somes results, most of all was matched with ''showcase''
5. So I want to tell the user that: Nothing was found with