Displaying 20 results from an estimated 3000 matches similar to: "acts_as_ferret: dynamic index selection"
2006 Apr 13
1
FerretHelper module and Ferret Finder utility
Hi
I''ve written ferret_helper.rb (FerretHelper module) containing wrapper 
methods
for converting PDF, HTML, Open Document and Microsoft Word files to 
plain text
for the Ferret index analysers.
To help test it I wrote a simple ff.rb (Ferret Finder) command-line 
utility to
index and search document files.
You can download the code at http://www.methods.co.nz/ff/
Cheers, Stuart
--
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 21
3
segfaulting at rebiuild_index
Hello,
  I can''t figure out how to get acts_as_ferret to stop segfaulting.
Every time i run a query on my server (rails 1.1.4 and ferret .9.4 and 
aaf from svn) I get a segfault
./script/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:243: 
[BUG] Segmentation fault
this line is where the indx is rebuilt.
"
       def rebuild_index(*additional_models)
         
2006 Sep 09
2
search_each segmentation fault and parser anomoly
The included test script turned up the following anomolies (run
against Ferret 0.10.3, but had same problems with 0.10.2):
1. When the content word is not in the index the inclusion of a
   wildcard file term causes search_each to throw a segmentation
   fault.
  $ ./test.rb zzz file:*.txt
  query: +content:zzz +file:*.txt
  ./test.rb:28: [BUG] Segmentation fault
  ruby 1.8.4 (2005-12-24)
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
2007 Feb 05
2
rebuild_index is returning {}
Previously when I used to build index i used to get false in return.
>> Event.rebuild_index
=> false
Now I get this.
>> Event.rebuild_index
=> {}
Following changes took place.
1) I moved my app from FCGI to mongrel.
2) I moved my app to capistrano.
Before moving to capistrano the code was
 acts_as_ferret :fields => [ "name", "desc_uf" ]
Now the code
2006 May 10
2
Gem 0.9.2: undefined symbol: mtde_create
Upon opening an existing index after upgrading to the 0.9.2 ferret gem
I get the following error: undefined symbol: mtde_create. Here''s an
irb transcript which recreates the error:
irb(main):011:0> index = Index::Index.new({:path => 
''/home/srackham/bin/ff_index''})
=> #<Ferret::Index::Index:0xb7be7590>
irb(main):012:0>
2019 Aug 03
1
segmentation fault in fs_list_get_path
Hi,
There seems to be a straightforward bug in 
src/lib-storage/list/mailbox-list-fs.c:79.  set->index_dir is unchecked 
prior to dereferencing (unlike on line 126 in the same file, where it is 
properly checked).  This manifested on a FreeBSD server running dovecot 
2.3.6 when clients tried to retrieve mail with subscriptions like 
`~/bar/baz`.  This caused the `imap` child to crash, e.g.
2007 Nov 13
8
acts_as_ferret : cannot use a customized Analyzer (as indicated in the AdvancedUsageNotes)
Hi all,
I cannot make aaf (rev. 220) use my custom analyzer, despite following the
indications @
   http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage
To pinpoint the problem, I created a model + a simple analyzer with 2 stop
words : "fax" and "gsm".
test 1 : model.rebuild_index + model.find_by_contents("fax")  # fax is a
stop word.
   => I get a
2006 Apr 05
3
Missing Ferret 0.9.0 Field methods
The following instance methods seem to be missing from the 
Ferret::Document::Field class in Ferret 0.9.0 using compiled C 
extensions: #string_value, #reader_value and #binary_value. They are in 
the pure ruby implementation).
I got round it by mixing in hacked versions of the pure Ruby methods 
(@data replaced by self.data).
Many thanks for Ferret it''s shaping up to being a killer app
2007 Jul 25
3
Nut fsd command ignored: bcmxcp_usb driver, Powerware 5105 UPS
Hi
I'm having a  problem with the bcmxcp_usb driver FSD command: everything
seems to work apart from:
   upsmon -c fsd
Environment: Ubuntu 7.04, nut 2.0.5-1, nut-usb 2.0.5-1, Powerware 3105
UPS.
upsd appears to send the FSD command to the UPS, upsmon then runs my
NOTIFYCMD (which halts my PC) but the UPS just doesn't turn off.
Here are the /var/log/daemon.log entries:
Jul 24 23:13:16
2010 Oct 22
0
NUT and AsciiDoc (was: Next AsciiDoc release)
Hi Stuart,
sorry for the lag in answering, I know that you're awaiting feedback for the
final release...
2010/10/19 Stuart Rackham
> Hi Arnaud
>
> I successfully compiled all the docs in svn://
> svn.debian.org/nut/branches/AsciiDoc using the current AsciiDoc trunk, and
> yes, the chunked manual only has a single toc. But there was the added
> problem of the article
2007 Sep 12
3
Can''t disable ferret when running in Mongrel
In my environment.rb I say the following:
MyModel.disable_ferret
puts MyModel.ferret_enabled?
The console works as expected:
script/console
false
 >> MyModel.ferret_enabled?
=> false
I can then edit an instance, ferret remains disabled and the changes  
are not immediately indexed.
However, when I start mongrel Ferret is initially disabled, but then  
somehow becomes enabled again
2006 Sep 10
1
ff-1.1.0
I''ve updated my ff document index/search utility so it now runs under 
Ferret
0.10.x.
ff is a simple *NIX command-line utility that indexes and
searches document files using Ferret, it can be found at 
http://www.methods.co.nz/ff/
Cheers, Stuart
--
Stuart Rackham
-- 
Posted via http://www.ruby-forum.com/.
2006 Aug 28
3
Can'' t install.
Hi,
I want to install the Acts_as_ferret plugin so I tried "gem install 
ferret" and I get the following error:
C:\InstantRails\rails_apps\eatnewcastle>gem install ferret
Attempting local installation of ''ferret''
Local gem file not found: ferret*.gem
Attempting remote installation of ''ferret''
Building native extensions.  This could take a while...
2007 Jan 05
1
Crash in rc15
We just experienced another crash in rc15.  Here is the full backtrace:
(gdb) bt full
#0  0xff1c12a4 in .L423 () from /lib/libc.so.1
No symbol table info available.
#1  0xff15fe20 in __wcsxfrm_std () from /lib/libc.so.1
No symbol table info available.
#2  0xff140040 in getutline () from /lib/libc.so.1
No symbol table info available.
#3  0x000786a8 in i_internal_panic_handler (
    fmt=0x9ae80
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 Nov 28
8
how to update index from a script
Hello all,
I''m using AAF right now to index my ~3million db records.  However, any
additions to these records are added to the database through an external
script so the aaf activerecord hooks will not catch any updates.  Since
new records are only added rarely, I figured I could just add the new
records manually in ferret from some type of script.  I''ve been looking
at the
2007 Apr 04
2
Please help with Drb server
The Problem:
The application is using the AAF plugin. When I attempt to rebuild the
index on the production server
from the console, I get the following error:
------
DRb::DRbConnError: druby://ferret.mydomain.com:9010 -
#<Errno::ETIMEDOUT: Connection timed out - connect(2)>
        from /usr/lib/ruby/1.8/drb/drb.rb:736:in `open''
        from /usr/lib/ruby/1.8/drb/drb.rb:729:in