search for: max_scor

Displaying 15 results from an estimated 15 matches for "max_scor".

Did you mean: max_score
2006 Oct 10
5
oddness when adding to index -
...daw g dog walker"].each {|text| i << text } => ["While you were out pet care", "Eastside dog walker", "Top dawg dog walker"] *** Now let''s do some searches *** irb(main):006:0> puts i.search(''pet'') TopDocs: total_hits = 1, max_score = 0.878416 [ 0 "While you were out pet care": 0.878416 ] => nil irb(main):007:0> puts i.search(''dog'') TopDocs: total_hits = 2, max_score = 0.500000 [ 1 "Eastside dog walker": 0.500000 2 "Top dawg dog walker": 0.500000 ] => nil irb(main)...
2007 May 03
1
Numeric Range or comparision doesn''t work
...:data => "yes"}, {:num => 1000, :data => "no"} ] ?> puts index.process_query(''data:yes AND num:[10 100]'') +data:yes +num:[10 100] => nil >> puts index.search(''d:data:yes AND num:[10 100]'') TopDocs: total_hits = 2, max_score = 1.777895 [ 2 "": 1.777895 4 "": 1.777895 ] => nil >> puts index.process_query(''data:yes AND num:[2 100]'') num:"data yes <> num 2 100"~4 => nil >> puts index.process_query(''num:[2 100]'...
2006 Apr 08
4
Calling validates_inclusion_of out of default namespace
Hi, I''m trying to run the "validates_inclusion_of" method in a before_save hook, because the range is dependant on the related data. But I can''t figure out how to call it. When calling it normally, it says it can''t find it. I''ve tried several combinations like "ActiveRecord::Validations.validates_inclusion_of", but I can''t seem to
2006 Sep 23
0
TermQuery problem
...y entries. For example: > x=@i[450][:message_id] => "9e7db9110509070759732b21c4 at mail.gmail.com" > @i.search("message_id:#{x}") => #<struct Ferret::Search::TopDocs total_hits=1, hits=[#<struct Ferret::Search::Hit doc=450, score=6.51688194274902>], max_score=6.51688194274902> > @i.search(Ferret::Search::TermQuery.new(:message_id, x)) => #<struct Ferret::Search::TopDocs total_hits=0, hits=[], max_score=0.0> But sometimes it works fine: > x=@i[123][:message_id] => "c715e64050831145815d9262c at mail.gmail.com" &g...
2006 Sep 23
8
svn problems
I can consistently segfault the 0.10.4 gem, so I''m trying to get the subversion version working with hopes towards tracking the problem down. I have a fresh SVN checkout but: a) the version (in ferret.rb) claims to be 0.9.6; and b) Ferret::Index::FieldInfos and a couple other classes are missing at run time. It looks like this is because they''re not exported in the C
2007 Jan 23
2
Exact phrase score
Sorry if this has been beaten to death here but I couldn''t find the exact answer I was looking for. In the app I''m writing, we convert the score to a percentage and display it with the search results. The problem is when you search for an exact phrase (for example) and it matches the title of a document exactly, you only get a 17% match. Has anyone seen a way to either curve
2008 Jan 09
5
Parallel indexing doesn''t work?
.../test") index_writer.add_readers(readers) index_writer.close() readers.each {|reader| reader.close()} i = Ferret::I.new(:path => ''/tmp/test'') res = i.search(''name*'') puts res.inspect # gives me: #<struct Ferret::Search::TopDocs total_hits=0, hits=[], max_score=0.0, searcher=#<Ferret::Search::Searcher:0x58a6ec>> puts res.hits.size # gives me: 0
2006 Oct 09
2
hello, acts_as_ferret questions, any help greatly appreciate
hi, ive been reading up on ferret, acts_as_ferret, and other search plugins for rails. after reading about ferret, i found out about the acts_as_ferrt plugin. my first question about acts_as_ferret: 1. from reading about ferret, do i still need to manually save the IDX and add a IDX column field to my model table for acts_as_ferret to work? they say that acts_as_ferret handles everything,
2011 May 01
2
More detailed Test::Unit error report
Hi, I''m starting to use Test::Unit to create unit tests for my Rails Applications/Plugins. I don''t have much experience in Ruby Unit Testing. The problem is that the output report is very simple and it is very difficult to discover where is the error. Test::Unit does not show the line number of the error and the Stack Trace printed using the --trace option does not help either.
2006 Oct 11
0
Memory allocation bug with index.search
...datas. We''ve got around 12400 docs with this type, here are the queries (THEY ARE ALL LAUNCHED IN A _NEW_ INSTANCE OF FERRET ! (with the same index of course)): this one works fine : >> INDEX.search(''type:hardware'').to_s => "TopDocs: total_hits = 12490, max_score = 1.751220 [\n\t13997 \"61426\": 1.751220\n\t13998 \"61427\": 1.751220\n\t13999 \"61428\": 1.751220\n\t14000 \"61429\": 1.751220\n\t14001 \"61430\": 1.751220\n\t14002 \"61431\": 1.751220\n\t14003 \"61432\": 1.751220\n\t14004...
2006 Sep 06
9
Which analyzer to use
Lucene''s standard analyzer splits words separater with underscores. Ferret doesn''t do this. For example, if I create an index with only document ''test_case'' and search for ''case'' it doesn''t find anything. Lucene on the other hand finds it. The same story goes for words separated by colons. Which analyzer should I use to emulate
2006 Aug 28
1
stop words and /''s
Hi new version of ferret and acts as ferret have sorted out the scary glibc *** linked list pointer errors, thank god! New version are good but some searches are still not working. It is mostly the stop words ones. For example the "For Sale/Free/Swap" fails but works when "for" is stripped out. I have read all the recent posts regarding this issue and failed to get it to
2007 Mar 04
2
Need clarification of documentation
Hi, I have question about the delete() method docs. I am re-indexing data on the fly so I would like to delete any existing indexed data for a particular resource before re-indexing it using index.delete(id). The delete() method api doc says: "Delete the document referenced by the document number id if id is an integer or all of the documents which have the term id if id is a term.. id:
2007 Apr 06
4
Newbie having full text search problem with acts_as_ferret
Hi guys, I am using acts_as_ferret to do full text search on my models and I am having problem on three-letter word searches. I am going to use an example to explain my problem. Here it is: There is a table called users and it has login, first_name, last_name columns. There are three rows inside it. login first_name last_name bob bob henry longbob nil
2006 Aug 30
7
Hyphens
Hi there, I''m working with some legacy data where customer phone numbers are stored with hyphens between the area code, exchange, and number (e.g. 555-555-5555). Is this the best way to store a phone number? Perhaps not, but it''s the way they were being stored, so I have to work with this format. Right, so when I save a record the log tells me acts_as_ferret indexed the