search for: fuzzyquery

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

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 Post.find_by_contents(''word~'') I always get the same results, no matter how I set the above var...
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
2008 Jan 21
1
fuzzy search question
...clumsy way of doing this is to do the two searches and concatenate the results in order into a new set of results (I''m using ActsAsFerret, so I''d be doing some surgery on ActsAsFerret::SearchResults that gets pretty fragile with pagination). Is there an easier way to have a FuzzyQuery return the exact hits first? It looks like the score is the same regardless of the fuzziness of a specific term match. thanks!
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
2006 Jul 14
3
Whitespace Issues
...ection", "sale_category"]) This works fine when the "section" is a single word like "book" but when there is white spaces in the query like "paperback book" it does not find the appropriate result and comes back with zero hits. I changed this to use FuzzyQuery and it works but I sometimes get segmentation errors (this was reported in another topic). Does anyone have a solution to this problem for me? Thanks very much. -- Posted via http://www.ruby-forum.com/.
2006 Jul 24
0
error searching for a boolean query
.../trac/ticket/94 i get a segfault on certain queries.. i guess thats a problem with the query parser.. >> Indexer.index.search( "american~0.6 AND NOT type:Language" ) *** glibc detected *** double free or corruption (!prev): 0x0872ac50 *** Aborted maybe only in combination with a fuzzyquery.. as this is working >> Indexer.index.search( "american AND NOT type:Language" ) => #<Ferret::Search::TopDocs?:0xb74be8bc> Ben -- Posted via http://www.ruby-forum.com/.
2006 Mar 17
1
Fuzzy searching using act_as_ferret
Hello, My Ferret integration has gone quite well. I''m now returning all the results I need from two models using "id_multi_search" and combining the results in the view using a couple of partials. Is there any way that I can turn on fuzzy searching? Would fuzzy searching pick up basic spelling mistakes such as "Bnadit" instead of "Bandit" my experience
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
2007 Jan 21
2
A few questions: Tweaking StemFilter, indexes, ...
Hello all, I am new to the list, but I have been using ferret for a little bit already. I would first like to thank Dave for all his work on ferret. I had a few questions that I haven''t been able to figure out after messing around with ferret and going through the documentation. StemFilter ------ I am trying to improve the quality of my searches in context of the content of my
2006 Sep 20
3
Range searches some times they work, some times not...
Hi i''m using ferret to enable geographical postcode. I take a postcode and distance in miles from the user, strip off the outcode and then retrieve the associated x y coordinates in metres from the db. Then i get two temp x''s and y''s and search for all results that are within the box, see code below. Problems start to occur when i search on big distances so for
2006 Aug 28
12
Help with Multiple Readers, 1 Writer scenario
Hi, I''m building a web server application using Ferret [thanks so much Dave], Mongrel and Camping which works fine servicing one request at a time, but serialises searches if more than one request arrives, so I''d like some advice please about the best way to use multiple readers and one writer. Some background ... query requests which in my case are always read only, arrive via