Displaying 20 results from an estimated 6000 matches similar to: "How to install Ferret to get the best performance"
2006 Apr 28
1
Full-text Search Options Redux
Hey all,
I haven''t heard much on the list in a while re: ActiveSearch, Ferret, 
Hyper Estraier, etc. in a while.
Has anyone successfully used ActiveSearch on tables with rows in the 
order of hundreds of thousands, if not millions?
(in our case, each row containing anywhere from a paragraph of text to 
many pages)
Here''s some background on our search efforts.
A. Hyper
2006 Aug 04
5
A couple of ferret 0.9.4 exceptions
Hi Dave,
I am using ferret at my site http://gifthat.com and I just had a few
exceptions pop up.  I don''t have a way to reproduce them, but my site
just was listed on lifehacker.com and these issues have popped up
under multiple concurrent users (only twice though which I think isn''t
too bad).  I am using two lighttpd instances both with read/write
access to the index:
1) Error
2006 May 08
3
Index::Index.new vs. Readers and Writers
Hey gang,
A post on the Rails forum a while back had it sound like you pretty much 
had to use the Index Readers & Writers if you were going to be 
potentially accessing an index from more than one process.  (i.e. 
multiple dispatch.fcgi''s, etc)
Is this still the case, or does the main Index class do that black magic 
behind the scenes?  =)
I was having trouble implementing the
2006 Apr 03
6
Installing Ferret locally on TextDrive
I would like to give the 0.9.0 version of Ferret a try on my
application hosted on TextDrive.  I am currently running on the 0.3.2
version there.
Does anyone have any tips on installing it locally there?  I know 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
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 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 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 30
3
Rebuild Indexes Issue
Hi,
I have some code to rebuild my ferret indexes but occasionally some
stale documents remain in the index even after rebuilding.  The only
way I could find around this is to manually delete the index files
from the filesystem.  Here is the code I have for rebuilding one of my
indexes for Gifts:
    # delete existing entries
    INDEX.size.times {|i| INDEX.delete(i)}
  	
    gifts =
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 Jul 11
5
Ferret Wiki Spam - Solutions Anyone?
Hi All,
As some of you may have noticed, the Ferret Wiki has been getting
spammed like crazy. And I haven''t been able to do anything about it
because I just don''t have the time. I''m getting pretty close to
releasing 0.10.0 which has been the major draw on my time for the last
couple of months so I''m going to have some time to look into this
soon. I was
2006 Nov 23
2
Segmentation Faults
Hi,
I am using Ferret 0.9.4 and my index appears to be corrupt as any
attempt to read or write it causes a segmentation fault.  I had been
using it with minimal problems for the past few months.
Is there a way to fix this without rebuilding the entire index?  Since
I am on a shared host ferret takes too much memory to rebuild these
roughly 8500 records in one go and in the past I have had to
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
 
2006 Jan 10
18
Ferret with IMAP dirs
I''d like to use ferret to build an imap indexer and search utility, but 
want to check first to see if anyone else is working on this and offer 
my help. Anyone?
Also, if you could provide any helpful pointers on indexing directories 
via ferret, it''ll be very much appreciated. I''m a lucene nuby.
Thanks!
John
-- 
Posted via http://www.ruby-forum.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 24
10
Ferret slow after a while
I''m building a new index from scratch based on a number of documents 
stored in a database loaded using my Rails env (using Ruby Ferret 0.9x 
(installed today with Gem) on Windows). At first everything goes nice 
but after a number of documents it starts to go slower and slower until 
it grinds to a halt (at least feels like it).
Am I doing something wrong? Is there some way to work
2005 Dec 16
2
Ferret questions
Hi,
I am just getting started with Ferret, but I have a couple of
questions.  Any help is appreciated.
1) Will the current Ferret implementation only work on one server due
to the index file?  If it will work on multiple servers, could you
point me towards some documentation?  If not, are there plans to add
support in the future?
2) This may not be Ferret-specific, but if I were implementing
2006 Nov 24
2
Strange error. Index corrupt on production server
We''ve been running Ferret for a few months on our site with great 
result. But, just a monent ago the index suddenly became corrupt.
It all started with this error message:
 :108250 is out of range [0..108183] for IndexWriter#[]
 /usr/local/lib/ruby/gems/1.8/gems/ferret-0.10.9/lib/ferret/index.rb:382:in 
`[]''
And after that every search resulted in this error:
A IOError
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 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 Mar 14
6
cFerret nearing completion
Hey folks,
Some good news. I''ve finished cFerret and it''s ruby bindings to the
point where I can run all of the unit tests. I still have to work out
how I''m going to package and release it but it shouldn''t be long now.
If you can''t wait you might like to try it from the subversion
repository. It''ll probably only work on linux at the moment and