Displaying 4 results from an estimated 4 matches for "ferret_rank".
2007 Jun 04
5
Sorting and getting occurrences of search in hit
Is there any way you could get the number of occurrences of the search
in one hit?
In a result I get the ferret_rank and ferret_score but not how many hits
the search generated in the current record.
I would also like to be able to sort after this when I search.
/mattias
--
Posted via http://www.ruby-forum.com/.
2007 Apr 22
0
rename error using rebuild_index in console after searching
...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,
@results=[#<Address:0x
4f30198 @ferret_score=0.106434106826782, @ferret_rank=1,
@attributes={"city"=>""
, "updated_at"=>"2007-04-16 01:32:40", "zipcode"=>"11111",
"addressable_type"=>"
User", "country"=>"US", "addressable_id"=>"1", "...
2007 Mar 26
6
[AAF] acts_as_ferret 0.4.0 released
Hi folks!
Just wanted to let you know that I released aaf 0.4.0 on last weekend.
Besides the DRb server it also includes a new lazy loading feature that
lets you do ferret searches without actually loading any records from the
DB. Useful e.g. for live searches:
model:
class MyModel
acts_as_ferret :fields => { :title => { :store => :yes }, :content => {} }
end
controller:
2007 May 29
1
is "IN" a special word?
...:user => {:store => :no },
:len => {:store => :yes}
}
end
ruby script/console
>> User.find_by_contents(''Cal'')
=> #<ActsAsFerret::SearchResults:0xb762ab58 @total_hits=1,
@results=[#<User:0xb762b8f0 @ferret_score=0.244397431612015,
@ferret_rank=1, @attributes={"user"=>"Cal Poly", "id"=>"1",
"len"=>nil}>]>
>> u = User.new
=> #<User:0xb76293fc @new_record=true, @attributes={"user"=>nil,
"len"=>nil}>
>> u.user = ''IN'...