Displaying 20 results from an estimated 9000 matches similar to: "Rebuild Indexes Issue"
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 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 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 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 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 05
1
Routing via function
I have a route that depends on a username being passed in the URL, such as:
map.connect '':username'', :controller => ''user'', :action => ''show''
Is there a way to perform a lookup of the username before matching on
this route?
I am hoping to be able to do something like this (completely made up):
:requirements => {:username =>
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 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 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 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
2006 Oct 05
4
search results autocompletion
Dear list,
I ''m using a text input field with autocompletion . The suggestions come
from a ferret index which is created by getting all the terms belonging to
other indices. Here is the code:
class Suggestion
attr_accessor :term
def self.index(create)
[Person, Project, Orgunit].each{|kl|
terms = self.all_terms(kl)
terms.each{|term|
suggestion =
2006 Sep 18
16
Dynamic fields and AAF
Hi,
I have a model which has properties, these are your standard name/value
pairs, but also have attributes that affect how I want to store them in
ferret. I was using 0.9.5 with 0.2 of aaf, which seemed fine, I just
copied and pasted (yes, I know, ick) the to_doc method and added code to
iterate though the properties that that model had, and add relavent
fields to the document.
It seems
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 May 23
13
acts_as_ferret 0.2.1 segfault
Hi,
I just installed via script/plugin from the stable svn tag. (Revision 54)
I''m running Rails 1.1.2 and have Ferret 0.9.3 (with C extensions. no
compilation problems)
I put together a simple model to test it and I''m getting a segfault.
The model:
class Report < ActiveRecord::Base
acts_as_ferret :fields => [:title, :name]
end
$ script/console
Loading development
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 Sep 20
2
bad interaction of ferret (0.10.5) and mongrel on linux
We have an application that uses Ferret and acts_as_ferret that we
just upgraded to Ferret 0.10.5 (from 0.9.5) and the corresponding
version of the acts_as_ferret. Everything works as expected on my
laptop, which is running mongrel 0.3.13.3. When I deploy the
application on our server, which is running some version of Red Hat
Linux, I can''t get Ferret to work at all when
2005 Dec 02
43
ANN: acts_as_ferret
Hi all
This week I have worked with Rails and Ferret to test Ferrets (and Lucenes)
capabilities. I decided to make a mixin for ActiveRecord as it seemed the
simplest possible solution and I ended up making this into a plugin.
For more info on Ferret see:
http://ferret.davebalmain.com/trac/
The plugin is functional but could easily be refined. Anyway I want to share it
with you. Regard it as a
2005 Dec 02
43
ANN: acts_as_ferret
Hi all
This week I have worked with Rails and Ferret to test Ferrets (and Lucenes)
capabilities. I decided to make a mixin for ActiveRecord as it seemed the
simplest possible solution and I ended up making this into a plugin.
For more info on Ferret see:
http://ferret.davebalmain.com/trac/
The plugin is functional but could easily be refined. Anyway I want to share it
with you. Regard it as a
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 May 18
2
acts_as_ferret 0.2.1
The svn repository for acts_as_ferret has just been tagged with version
0.2.1. This is the first version of aaf to support the 0.9.x branch of
Ferret.
See http://projects.jkraemer.net/acts_as_ferret/wiki
*Features*
* High speed full text search across the contents of any Rails model
class, without any hassles. The index will be kept up to date
automagically while you work with your Rails