Displaying 20 results from an estimated 59 matches for "atomgi".
Did you mean:
atomi
2006 Aug 04
5
A couple of ferret 0.9.4 exceptions
...that I would think the search each doesn''t need to
write to the index.
Both of these issues appear to have happened at the same time, so they
may be related to each other.
Thanks for your excellent work on Ferret! Please let me know if you
need any more info from me.
Tom Davies
http://atomgiant.com
http://gifthat.com
2006 Apr 26
3
catch all error for incorrect urls etc
Hi,
I am changing a very standard old school website to rails. When I make
the change to rails, all of the old urls will not be valid. If a
person has a bookmark to an old web page I would like them to be
directed to the front page of the new website www.domain.com. How do I
do this? Do I do something in routes.rb?
Thanks,
Peter
2006 May 30
3
Rebuild Indexes Issue
...NDEX.size.times {|i| INDEX.delete(i)}
gifts = Gift.find(:all)
if (gifts)
gifts.each do |e|
INDEX << self.to_doc
end
end
INDEX.flush()
Does this look ok? I have verified this behavior on Ferret 0.3.2 and
0.9 on windows.
Thanks,
Tom Davies
http://blog.atomgiant.com
http://gifthat.com
2006 Jul 05
1
Routing via function
...is route?
I am hoping to be able to do something like this (completely made up):
:requirements => {:username => {|username| User.find_by_username(username)}}
I vaguely remember seeing a post a few months ago related to this but
I have had no luck digging it up.
Thanks,
Tom Davies
http://atomgiant.com
http://gifthat.com
2006 Jul 07
5
link_to: link is missing id
I''m using a legacy table, where the unique id is not ''id''
I have a Model class like the following:
class Article < ActiveRecord::Base
set_primary_key "ARTICLE_ID"
end
however, using a link_to like the following (modified scaffolding),
the link has no id value:
<% for article in @articles %>
<tr>
<% for column in
2006 Aug 02
4
Linking to the paginated items from search results.
Using Ferret for searching, I''ve got results that I need to link to.
Which is fine, except for that they''re displayed on paginated pages
using Rails paginate function - so it''s not like I can''t get it from the
database or anything else. Anyone have any ideas on how to go about
this? It''s not so much a coding problem as a theory problem, and I
2006 May 01
12
pagination in acts_as_ferret
I''m just wondering where I would put the pagination for search results
when using "acts_as_ferret".
At the moment my search code is..
def search
@query = params[:query] || ''''
unless @query.blank?
@results = Tutorial.find_by_contents @query
end
end
Cheers
SchmakO
--
Posted via http://www.ruby-forum.com/.
2006 Jun 29
13
find_by_contents not returning SearchResults?
The acts_as_ferret documentation says find_by_content returns an
instance of SearchResults, but I see this error when I try to use the
results.
undefined method `total_hits'' for []:Array
Here is the link to the documentation:
http://projects.jkraemer.net/acts_as_ferret/rdoc/classes/FerretMixin/Acts/ARFerret/ClassMethods.html#M000010
But here is the actual code:
result =
2006 Mar 17
4
using ajax and layouts
Hi.
I copied the layout-example from agile web dev. in rails. When I want
to use ajax to create a search field including
<head><%= javascript_include_tag "prototype" %></head>
does''nt work when I include the line in my
app/views/layout/demo.rhtml. Name of controller is demo_controller.rb.
The search-field is in app/views/demo/observer.rthml and I have to
2006 Apr 03
6
Installing Ferret locally on TextDrive
...ow just
enough about Ruby gems to get by... but I am thinking it could be as
easy as passing a -i flag to specify the install location for ferret.
Then, the only thing I am not sure about is how to modify the ruby
require library search path.
Any tips are appreciated.
Thanks,
-- Tom
http://blog.atomgiant.com
http://gifthat.com
2006 Mar 01
9
Updating Index Is Very Slow
Hi,
I am experiencing very poor performance when updating my index. For
example, to update the index for 10 documents, it is taking 3 to 4
seconds. My index is currently very small... with probably less than
100 docs in it.
I have created my index as follows:
GIFT_INDEX = Index::Index.new(:path => "#{index_dir}/gift", :key =>
''id'', :auto_flush => true)
2006 Mar 30
6
Global Method Declaration?
Is there a place where I can put a method that can be accessed in both
views and controllers?
Here''s the situation, maybe someone can suggest a better way to go about this:
I created my own custom login system with email verification and user
roles (basically, I tinkered around with SaltedHashLoginGenerator
until I finally gave up and wrote my own). One role, of course, is an
admin
2006 May 23
2
CSS not applied using apache
Hi all,
I have recently configured rails to run under apache. I''ve tried adding
a stylesheet using the stylesheet_link_tag function, however when I load
the page I do not see the affects of the stylesheet. The URL to the
stylesheet looks correct when viewing the page''s source. Has anyone
else seen this problem?
Thanks for your help,
Chris
--
Posted via
2005 Oct 30
4
IE crashing
Before I spend a ton of time trying to track something down that might not
actually be broken, maybe someone could test this with IE to see if it
crashes their browser also.
Go to http://asterisk.paymentonline.net:3000/login/user and login as user
''demo'', password ''password''. Then click on the dialplan menu option and then
click Add Script once or twice. on my
2006 May 04
5
How to install Ferret to get the best performance
Hey all,
After dabbling with ActiveSearch, we''re coming back around to take
another look at Ferret.
ActiveSearch slowed to a crawl after indexing about 20k documents, each
20 lines each.
This time we may attempt to create multiple Ferret indexes (isolating
each organization''s data individually), since we eventually could have
upwards of 20k documents for some
2006 Jul 31
2
Wizard-like multi-page transaction
Hello
Is it possible to create something like wizard with database
transactions, so transaction would begin on page one, then on page two,
three... etc. there would be some data altered in the database and then
on the last page the transaction would be committed or rolled back?
thx
Zvonko
--
Posted via http://www.ruby-forum.com/.
2006 Nov 23
2
Segmentation Faults
...itching to Mysql full text search just for
stability reasons, but if there was a good technique for combating
these segfaults I would rather stick with Ferret.
NOTE: I did try running with ferret 0.10.13 but I was getting a bunch
of segfaults just rebuilding my indexes.
Thanks,
Tom Davies
http://atomgiant.com
http://gifthat.com
2006 Apr 03
16
Dealing with Application error (Rails) in production
Hi all,
Week 2 working with Ruby on Rails... I have a working app in development
that is now throwing a generic, "Application error (Rails)" message in
production.
How do I deal with this so I can find more information about why the
error is being thrown in production, but not in development?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Jan 27
2
Grouping results
I have a general question about using a Ferret/Lucene index for
grouping results. I am not sure how much of the heavy lifting the
index can do for me, so I would appreciate any input. I am using
ferret to index some objects that have the following properties:
url, image_url, price, tags (space separated tags), created_at
I would like search the index for any documents that match a specific
2006 Jan 19
2
Simple Ferret Questions
I am trying to use Ferret for searching for users based on first and last name.
In my index, I am adding the first_name, last_name, and a full_name
which is basically "#{first_name} #{last_name}".
I am searching the index using something like the following query:
INDEX.search_each(%Q/first_name:#{query}* OR last_name:#{query}* OR
full_name:#{query}*/) do |doc, score|
The problem I am