Displaying 20 results from an estimated 2000 matches similar to: "Sorting and getting occurrences of search in hit"
2007 Mar 22
3
Noice words...
Hi
I use acts_as_ferret on an app that is in Danish and English. In  
Danish english words like "and" and "under" has meaning. Is it  
possible to make ferret search for these words? As it is now a seach  
for "under" returns nothing even-though I know the word is present in  
the index.
Cheers
Mattias
2007 Jun 08
13
Errror on update after Model.rebuild_index
Hi
I use Ferret 0.11.4 and the latest stabel version of the acts_as_ferret
plugin.
To the issue. if I do Model.rebuild_index and after that try to update
one of my objects of that Model I get:
File Not Found Error occured at <except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input
  tried to open
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 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,
2008 Apr 24
1
Date not changing...
I run Apache/2.2.8 (FreeBSD), mongrel_cluster (1.0.5) and mongrel  
(1.1.3) The app I have issues with is a Rails 1.2.6 app.
In one controller I have a before filter that sets the month, year  
variables to the current month and year if it''s not passed in the  
request. The problem that I now have, after changing to the above  
configuration from a lighttpd/fast-cgi), is that the date
2007 Sep 06
5
Find by contents and missing ferret_score method
Hi,
i m using acts as ferret via the find_by_contents, and then i my trying
to get the score of each results...
But the score of ferret_score method is missing...
I ve got the @total_hits in the array, but not the @score one :/
What s going on ?
Is this method disappear in acts_as_ferret ?
thanks
Guillaume.
-- 
Posted via http://www.ruby-forum.com/.
2007 May 29
1
is "IN" a special word?
Hi, I am trying to do a search for a field that contains the word "in"
or "IN", but ferret doesn''t return me any result.
class User < ActiveRecord::Base
acts_as_ferret :fields => {
         :user => {:store => :no },
         :len => {:store => :yes}
         }
end
ruby script/console
>> User.find_by_contents(''Cal'')
=>
2007 Mar 22
1
Make ferret serach for english words like "and"
I use ferret on a danish site where I would like ferret to search word
like "under" and "and". These are words that are excluded by ferret but
have a different meaning in danish.
Can you dissable this in ferret?
Cheers
Mattias
-- 
Posted via http://www.ruby-forum.com/.
2009 Jan 21
5
Runner suddenly fails...
I have some jobs running through cron jobs and runner that suddenly
starts failing.
This is how it looks:
from
/usr/local/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/runner.rb:47
  from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require''
  from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require''
  from
2006 May 19
1
database.yml and encoding: utf8 -> mysql error
I have Rails 1.1, MySql 5.0 and would like to stor text as utf8 in the 
db.
I have changed the character set and collation in the db to utf8 and 
utf8_danish_ci - also checked the mysql to if its ok:
show collations like "%danish%";
utf8_danish_ci	utf8	203		Yes	8
I then add the following
environment.rb:
$KCODE = ''u''
require ''jcode''
och database.yml
2006 Oct 16
10
Sorting by score
Hi I think this is a very easy question but here goes:
I want to sort my results by a boolean field and then by score, I 
thought this would be a default configuration but apparently not.
sort_fields = []
sort_fields << Ferret::Search::SortField.new(:sponsored, :reverse => 
:true)
that is my current code, how do iu alter it so that the results are then 
sorted by highest score first?
2008 Sep 16
7
id in form_tag for update
I get an error saying Rails can''t find the post because I don''t have an
id when doing the update.  I have:
<% form_tag ''/meetings/update'', :id => @calendar.id, :onsubmit =>
''return ValidateMeeting()'' do %>
 Is this wrong?
-- 
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You
2007 Sep 21
3
multi_score?
Hi!
I''m using acts_as_ferret in my rails project and i need to order the
search results by a combination of the result given by ferret (score)
and a ranking in the database (normalized also). this combination can be
like that:
0.4*ferret_score+0.6*database_score
this database_score is also indexed
any idea?
and someone know how to access the ferret data in the object returned by
2007 May 22
1
Bug in Ferret::Search::SortField::SCORE ??
i have been trying to get this to work for a while now.  my controller
is
  sort = [ Ferret::Search::SortField::SCORE_REV ]
  @results = Record.multi_search(params[:search_terms], [ Link, Post,
Event ], {:limit => :all, :sort => sort })
and in my view i just render a conglomeration of the appropriate
partials for each model.  it seems that no matter what i do, i can''t get
the
2006 May 26
8
Comparing two documents in the index
I want to compare two documents in the index (i.e. retrieve the cosine 
similarity/score between two documents term-vector''s). Is this possible 
using the standard Ferret functionality?
Thanks in advance,
Jeroen Bulters
-- 
Posted via http://www.ruby-forum.com/.
2006 Jul 31
16
Sorting performance
I''m using acts_as_ferret to index one of my rails models. Right after I
start the app the first request that orders by some ferret field will
take very long. Subsequent ones seem to be fast. I guess some caching is
going on. Any tips on solving this?
Pedro.
2005 Nov 26
3
Several questions about Ferret.
Hi.
First of all I would like to say "thank you" to David for its really
valuable work. Ferret is a great project and it have great future.
Well now is my questions as beginner in Ferret.
How to remove ALL documents from index. Remove files is not a solution. I am
interesting in something like
index.remove_index or something like this. What is a usual way of doing it??
What is the
2006 Aug 01
5
Per field boost values - possible? working?
I''m making a simple business directory search and I want to boost the 
relevance of the ''name'' field over the ''address'' field - both stored in 
the same document in the same index.
Here is some console code to demonstrate what I am actually doing
>> include Ferret::Document
=> Object
>> doc = Document.new
=> Document {
}
>> doc
2017 Jun 20
2
Help with the plot function
Dear friends,
I have the following dataframe:
YEAR <- c(1996 , 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 )
T_MAR <- c(2.8, 6.5, 5.4,2.4, 4, 4.1, 3, 4.4, 4.5)
T_APR <- c(5.7, 7.8, 7.7, 4.6, 4.7, 6.2,5.7, 5.9, 7)
T_MAY <- c(7, 8.8, 10, 6, 5.5, 7.6, 8.5, 7.3, 10.2)
BUD <- c(87, 98, 93, 85, 89, 91, 87, 92, 92)
BUD_SE <- c(3.6, 2, 2.4, 4, 2.4, 2.4, 4, 2.4, 3)
g1 <-
2017 Jun 20
2
Help with the plot function
Hi, Bert:
Yes, I studied the functions you suggested, but I didn't get to adapt it to
my example whose reproducible code I sent in my first email.
Here it is the code of the functions I studies:
## par
par(mfrow = c(2, 3))
par(cex = 0.6)
par(mar = c(3, 3, 0, 0), oma = c(1, 1, 1, 1))
for (i in 1:6) {
 plot(1, 1, type = "n")
mtext(letters[i], side = 3, line = -1, adj = 0.1, cex =