Displaying 20 results from an estimated 1000 matches similar to: "Fuzzy searching using act_as_ferret"
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
2008 Jan 21
1
fuzzy search question
Hi,
I''ve got a question about FuzzyQueries. Say I''m doing a search for
people by name, and I want to allow fuzzy results if there aren''t
enough hits with a regular query. This is easy enough; just redo the
search with the fuzzy query if original_results.total_hits is less
than some threshold. However, I would like the exact-match results to
have a higher score
2008 Aug 20
1
acts_as_ferret and DRb server errors
I am seeing this in my ferret_server.log when I do a search:
DRb server: ensure_index_exists for class Myclass1
DRb server: ensure_index_exists for class Myclass2
DRb server: ensure_index_exists for class Myclass3
DRb server: ensure_index_exists for class Myclass4
#method_missing(:id_multi_search, ["Myclass1", "test*", ["Myclass4",
"Myclass3",
2007 Jun 01
2
Is aaf multi_search broken?
Hi all,
I want to use acts_as_ferret''s multi_search to search two model classes
(Reviewable and Blog) at a time like
@results = Reviewable.multi_search("jemen", [Blog])
and I''m always getting the error
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.map
2006 Jun 19
2
fuzzy search
This may be offtopic to Rails, but what are people doing to find records
based on fuzzy string matches? For example, if you wanted to find a
Person with name "David Heinemeier Hansson" but searched using the
string "Dave Hansson".
Currently I am find_by_sql that calls the PostgreSQL function
"levenshtein(string1, string2)" which returns results with a score
2008 Jan 06
3
Did you mean ...? with act_as_ferret
Hello,
does anybody know how to implement a "Did you mean ...?" like Google
with act_as_ferret?
I think this is a possible way:
1. Generate a keyword-list (this is my difficulty. I don''t know how to
build such a list from the index) with no stop-words from the first
index.
e. g. (car, ship, plant, house)
2. Build a second index from this word-list where we store the word in
2007 Mar 05
1
Using act_as_ferret with find_by_sql
Hello,
I wonder if its possible to combine ferret queries with find_by_sql
queries?
Or should I try to rewrite my query using find and then use
find_by_content when I''m done?
Thanks for a great product!
Regards,
henrik
2007 Dec 13
0
help on act_as_ferret
Hi,
My name is santoshkumar r Patil. I am using ferret for searching.
I am using mult_search for searching a query on multiple modal and there
are different conditions on different model.
EX
User.multi_search(search_query+" AND NOT is_deleted:1
",[Program],{:limit=>limit,:offset=>offset})
And I have to condition "is_visible = true" on program model.
How can I modify
2010 Dec 08
1
Help on install act_as_ferret on windows XP
Hi There!
Im trying to install act_as ferret on win xp, with this
environment:
winXP
ruby : 1.8.7
rails: 2.3.8
gem list:
abstract (1.0.0)
actionmailer (3.0.1, 2.3.8, 1.3.3)
actionpack (3.0.1, 2.3.8, 2.3.2, 1.13.6, 1.13.3)
actionwebservice (1.2.6, 1.2.3)
activemodel (3.0.1)
activerecord (3.0.1, 2.3.8, 2.3.2, 1.15.6, 1.15.3)
activeresource (3.0.1, 2.3.8)
activesupport (3.0.1, 2.3.8, 2.3.2, 1.4.4,
2006 Jul 10
3
Plurals and synonym lists
I want to correct spelling errors automatically. I have used search in
the past where I can pass an argument through standard search to correct
a word with up to 2 spelling errors for example or do the more Google
like "Did ya mean?". In this case I just want to change it automatically
and search. I am not too interested in specifying the number of
characters it is out by.
What is
2007 Apr 03
5
Inifinite loop problem with DRb server
Hi all,
We''re attempting to use Ferret with the DRb server at the moment, and
it doesn''t work, at all...
= Executive Summary
The DRb server process keeps on calling the remote index to the DRb
server process... Which means DRb is calling itself, and itself, and
itself, until Ruby kills the Thread with a SystemStackLevel error.
= The excruciating details...
# Mongrel is
2006 Nov 25
5
Metaphone analysis
Not sure how much this will interest people but I don''t have a blog so I''m
posting something I threw together today cause I think it might be useful.
In what little free time I have I''ve been wanting to put together a
Rails/Ferret based restful dictionary. So I finally got a chance to get
started today so the first thing I wanted to do was implement a metaphone
2011 Jun 21
2
Acoustic echo cancellation
Hi Andras, others,
Andras Kadinger <bandit <at> surfnonstop.com> writes:
>
>
> Daniel,
> I recommend you to start from a simple case and gradually progress
> towards your goal.
> Can you make things work with the "Speex in a Disco" (Example 6)
> testcase at http://ns.surfnonstop.com/~bandit/speex/echocard1/ ?
> These files
2007 Mar 27
1
multi_search problems
Hello.
I''ve been trying to get multi_search to work and I simply can''t.
I have two models:
Post
acts_as_ferret :fields => [:title, :body], :store_class_name => true
Page
acts_as_ferret :fields => [:title, :body], :store_class_name => true
If I do @results = Post.find_by_contents(params[:q]) or @results =
Page.find_by_contents(params[:q]) it works fine, but if I
2007 Mar 31
8
Problem with setting up remote indexing
Hello,
I have been trying to set up the remote indexing for acts_as_ferret and
followed the guide here:
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer
I added :remote => true to my models and then specified host and port
for the production environment.
After defining the host/port for production, I tried to run my
development server and received the following error:
2007 Mar 21
2
store_class_name for Comatose:Page model
Hi,
I have three models: Comatose::Page, Article and Product.
In all of them, store_class_name is set to true.
Now, when i do:
results = Comatose::Page.multi_search("*", [Article,Product], options)
I get:
wrong constant name Comatose::Page
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:438:in
`const_get''
2004 Jan 03
3
AW: AW: Snom 200 with two extns defined anyone?
Please forgive me if this is a silly question. I've been following this
thread in the hope that I could put my * server and snom 200 into
full-time service very soon. I need to find out how to have the lines
configured so that it does not return a busy reply when only one call
instances is engaged.
Am I supposed to create multiple extensions on my asterisk dialplan to
reflect the 5 call
2004 Jan 28
1
List traffic
All of a sudden my list traffic appears to have dropped to a few
messages/day the past few days. I anyone else seeing this as well?
Michael
--
Michael Graves mgraves@pixelpower.com
Sr. Product Specialist www.pixelpower.com
Pixel Power Inc. mgraves@mstvp.com
"...I believe in love, its all we've
2004 Feb 01
2
Luxoncomm 3800 series FXO/FXS adapters?
Anyone here have experience with these devices? They would ppear to be
an affordable alternative to multiple X100Ps.
Michael
--
Michael Graves mgraves@pixelpower.com
Sr. Product Specialist www.pixelpower.com
Pixel Power Inc. mgraves@mstvp.com
"Kick at the darkness 'till it bleeds daylight" - Bruce
2004 Apr 02
2
H.323 vs SIP?
OK. So it would appear that my quest for FXO adapters unconvers more,
and certainly more mature, H.323 based devices...not so many SIP
devices. What would be the benefits of SIP over H.323 for a small
office * server? All I need to do is bring 4 POTS lines into * with
Caller ID, make outgoing local calls reliably without undo echo.
FWIW, my * server is Fedora Core 1 on AMD XP2500 with 512 MB