Displaying 20 results from an estimated 1000 matches similar to: "find_with_ferret issue"
2007 Oct 03
3
Pagination problem with acts_as_ferret
Hi,
am using this wonderful plugin acts_as_ferret and according to the
tutorial at http://railsenvy.com/2007/2/19/acts-as- ? rial#basic
I worked it out except the pagination feature.
If I have 12 records and I give limit to 10, its correctly displaying 10
records in the first page and is giving the link to the second page too.
But when I go to the next page I find the same 10 records instead of
2007 Dec 13
4
please explain find_with_ferret, retrieve_records, :include and :conditions
Hello, I''m using find_with_ferret to search multiple models and it
works great. The trouble is I need to filter the results
using :include and :conditions.
I get two errors depending on the syntax I use in the search. Reading
the source, I see the retrieve_records method seems to filter
the :include and :conditions so that they only apply to the relevant
model when searching
2008 Jan 03
0
Problem (with fix?) for passing :multi => [ ]
Max, seems to me that your code would help to make things more robust,
if it''s a public API then it should stand up to a little abuse in ways
not intended. maybe more of an enhancement than a bug fix, but a fix
just the same.
Max Williams wrote:
> I''m using acts_as_ferret, passing through multiple classes using :multi
> and also some conditions. The way i''m
2009 Dec 24
12
no such file to load -- ferret
Hi there,
I''m just trying to deploy my app to my vhost, and i''m getting an error
on the phusion passenger page:
no such file to load -- ferret
now everything worked fine in development.
DO i need to reinstall the plugin and gem again? if so - would these
be in domain.com/public? or should it be installed at domain.com?
ANy advice would be great!
THank you.
--
You received
2008 Feb 01
0
find_with_ferret and HABTM assocs
Could you be more specific about what is not working?
-- Are your association methods between Role and User being set up
correctly? (If not, make sure your statement is
"has_and_belongs_to_many", and not "hasandbelongstomany".)
-- Are you storing the data for role_name in the index? If so, can
you see it there?
I''m not familiar with the find_with_ferret
2009 Nov 02
7
*** Quick help with paperclip ***
Hi All,
Someone reccomended using paperclip as a way to easily upload photos.
Basically I want a quick and easy solution to allow users to add a
profile picture.
Anyway - I have followed the tutorial on here:
http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/
I can add a file, but there isnt anywhere to upload it.
I have followed the above tutorial word for word, but i dont
2009 Dec 07
3
captcha
Hi all,
I want to implement a captcha on my register page to help weed out any
''non-human'' visitors.
I was told to check out http://expressica.com/simple_captcha/ but the
site isnt responding.
Does anyone have any other reccomendations that are tried and tested &
successful?
Many Thanks
--
You received this message because you are subscribed to the Google Groups
2010 Feb 10
16
nil object - can anyone help?
Hi there,
I''ve been looking for a while now and can''t seem to find where I''m
going wrong..
I''m following a railscast tutorial to send invites out to people.
there''s n invitation.rb page:
class Invitation < ActiveRecord::Base
#attr_accessible :sender_id, :recipient_email, :token, :sent_at
belongs_to :sender, :class_name =>
2010 Jan 03
9
ferret search in production
Hi there,
after recently deploying my app, I have noticed that the search
results are not being displayed...
When I look in my app, I also notice that the apps content (search
criterea) is not being indexed, so I dont have an index folder being
created.
I read on a google post that it may be that the ferret.yml server
isn''t started (or perhaps the content of this file are not right)
I
2010 May 08
2
uninitialized constant - Please Help Me...
Hello everyone,
I''ve decided to take the step into creating a mini-forum for my
website where users can open new posts on exixting topics and allow
people to discuss things etc...
I am following a tutorial in the book: APRESS - Practical Rails Social
Networking Sites and have hit a minor issue.
Part of the Forum requirements is to add a moderator role to allow
only certain individuals
2009 Dec 29
15
help needed - undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task
Hello,
I am trying to deploy my app at the moment, and each time I do, I get
the following error when i run a trace on it:
rake db:migrate --trace
(in /srv/some area/someplaceelse...)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
rake
2007 May 30
4
aaf and dynamic attrs: a bug?
Hi!
I faced some issue while using it for dynamic attrs indexing/search.
Maybe I made something wrong. Here is test method. Everything works just
fine until last line http://pastie.caboo.se/66274 . Tested on both
stable and trunk of aaf and ferret 0.11.4.
the short version of code below:
Contact.acts_as_ferret :fields => [ :first_name ]
assert
2010 Jan 21
2
will_paginate ?
Does anyone have experience with will_paginate?
I''m trying to use it with acts_as_ferret.
routes.rb
...
map.search ''/search'', :controller => ''notes'', :action => ''search''
notes.rb
...
acts_as_ferret :fields => [ ''body'' ]
notes_controller.rb
...
def search
if params[ :query ]
@query = params[
2007 Apr 30
1
Can''t search fields with space
Hi,
I have a user model that has a city field which is searchable using
acts_as_ferret.
But I can''t get it to return any result whether I use
:city => {:store => :no, :index => :untokenized},
or
:city => {:store => :no} in my User model''s acts_as_ferret option
>>> User.find_by_contents("city:(cal poly)")
=>
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
2006 Nov 27
2
find_conditions in acts_as_ferret find_by_contents
Hi all,
Every time I try to add options for the find_conditions argument of
find_by_contents I get the following:
a = AnnotatedLink.find_by_contents(''test'', {}, {:conditions =>
''category_id IS NOT NULL''})
>> NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while
2007 Jun 15
2
indexed ''text'' (not string) column not used when searching, unless explicitely specified!!
Hi all,
I''ve included a mysql ''text'' column in my index, and aaf/Ferret
doesn''t use it when I search, UNLESS I specify it as a restrictor, and
then it only searches in that field!
For example:
=> 0 results are returned by a standard (__all__ fields ?) search
>> Entity.find_by_contents "zixi"
Query: zixi
total hits: 0, results
2007 May 18
1
find_by_contents + ''conditions'' returning incorrect results
I''ve read the other threads like this one
(http://www.ruby-forum.com/topic/78841) but I''m not sure what I''m doing
wrong.
Scenario: I need a full text search on financial institutions and to
constrain that list by state (=) or states (IN). My lenders model
includes a name and a state, among other fields. In my lenders model:
acts_as_ferret :fields => [:name]
Running
2007 May 25
1
how to update index with acts_as_ferret?
Hey all,
I have movie has_many :medias and media belongs_to :media
this is how my movie class looks like:
class Movie < ActiveRecord::Base
has_many :medias
acts_as_ferret :fields => [:title,:medias_name]
def medias_name
return self.medias.inject("") {|name,m| name + " " + m.name}
end
end
when I do Movie.find_by_contents("title:bob") it does return a movie
2006 Jul 10
2
acts_as_ferret 0.2.2
Hi all,
I just tagged acts_as_ferret 0.2.2 as the current stable version, so get
it while it''s hot ;-)
new features:
- added support for the multiple models/single index approach.
- find out the total number of search results by calling total_hits on
the array returned by find_by_contents.
fixes:
- trac tickets #20 (find_by_contents breaks ferret sorting) and #24