search for: index_dir

Displaying 20 results from an estimated 35 matches for "index_dir".

2006 May 23
1
acts_as_ferret: dynamic index selection
Hi What is the be practice regards setting the index path dynamically? My application needs to switch indexes based on the logged in user, I put the following before_filter into my controller (the Document.index_dir method calculates the user''s index path): before_filter { Document.ferret_configuration[:path] = Document.index_dir } It seems to work, the only rough edge is that the acts_as_ferret declaration immediately creates a spurious index directory rather than deferring until the index is actu...
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. (slightly an...
2006 May 08
3
Index::Index.new vs. Readers and Writers
...ch appreciated. # Non-Reader/Writer Example - Main Index::Index.new only # works like a charm but haven''t tried firing up a bunch to see if we get IO blocks. require ''ferret'' class SearchEngine include Ferret include Ferret::Document def self.get_index() index_dir = "/var/search/index" index = Index::Index.new(:path => index_dir, :create_if_missing => true) return index end end # Reader/Writer Example require ''ferret'' class SearchEngine include Ferret include Ferret::Document...
2006 Apr 20
2
index_dir path
...NV (ie in the parent directory of each of my root directories ... I have three apps working together) In the acts_as_ferret file, I have changed line 73 to: index_base = "#{RAILS_ROOT}/../index" In my console, I can see that the new path is reflected properly. >> MyModel.class_index_dir => "./script/../config/../config/../../index/development/MyModel" However, the index is STILL placed in the default location of RAILS_ROOT/index/RAILS_ENV Any ideas .... ? Thanks Joerg -- Posted via http://www.ruby-forum.com/.
2009 Mar 13
1
v1.1.12 and v1.2.beta2 released
http://dovecot.org/releases/1.1/dovecot-1.1.12.tar.gz http://dovecot.org/releases/1.1/dovecot-1.1.12.tar.gz.sig http://dovecot.org/releases/1.2/beta/dovecot-1.2.beta2.tar.gz http://dovecot.org/releases/1.2/beta/dovecot-1.2.beta2.tar.gz.sig I thought I'd do a double-release since it's Friday the 13th. v1.2.0 is getting closer, mainly some ACL fixes left. Changes in v1.2.beta2 since
2009 Mar 13
1
v1.1.12 and v1.2.beta2 released
http://dovecot.org/releases/1.1/dovecot-1.1.12.tar.gz http://dovecot.org/releases/1.1/dovecot-1.1.12.tar.gz.sig http://dovecot.org/releases/1.2/beta/dovecot-1.2.beta2.tar.gz http://dovecot.org/releases/1.2/beta/dovecot-1.2.beta2.tar.gz.sig I thought I'd do a double-release since it's Friday the 13th. v1.2.0 is getting closer, mainly some ACL fixes left. Changes in v1.2.beta2 since
2005 Dec 02
43
ANN: acts_as_ferret
...after_create :ferret_create after_update :ferret_update after_destroy :ferret_destroy end end end module ClassMethods include Ferret INDEX_DIR = "#{RAILS_ROOT}/db/index.db" def self.reloadable?; false end # Finds instances by file contents. def find_by_contents(query, options = {}) index_searcher ||= Search::IndexSearcher.new(INDEX_DIR)...
2005 Dec 02
43
ANN: acts_as_ferret
...after_create :ferret_create after_update :ferret_update after_destroy :ferret_destroy end end end module ClassMethods include Ferret INDEX_DIR = "#{RAILS_ROOT}/db/index.db" def self.reloadable?; false end # Finds instances by file contents. def find_by_contents(query, options = {}) index_searcher ||= Search::IndexSearcher.new(INDEX_DIR)...
2006 Mar 01
9
Updating Index Is Very Slow
...iencing 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) and I have an after_save filter in my model as follows: def update_index INDEX << self.to_doc end Is there anything I can do to improve this performance? Thanks, Tom
2007 Jan 05
1
Crash in rc15
...%s: line %d (%s): assertion failed: (%s)") at failures.c:180 No locals. #5 0x000867d4 in p_strdup_until (pool=0xac54c, start=0xb8128, end=0x0) at strfuncs.c:151 size = 4294213336 mem = 0xac54c "" __PRETTY_FUNCTION__ = "p_strdup_until" #6 0x00035280 in mbox_get_index_dir (storage=0xb7c08, name=0xb8128 "~-~-~") at mbox-storage.c:448 p = 0x0 #7 0x00035cac in mbox_mailbox_delete (_storage=0xb7c08, name=0xb8128 "~-~-~") at mbox-storage.c:901 index_dir = 0xb812d "" path = 0xb8128 "~-~-~" st = {st_dev = 22282293, st_pa...
2007 Feb 05
2
rebuild_index is returning {}
...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 is acts_as_ferret :fields => [ "name", "desc_uf" ],:index_dir => "/home/dorelal/apps/eii_#{RAILS_ENV}/shared/ferret" My question is this: Now that I do Event.rebuild_index I get {} in return. Is that okay? Or does that mean something is wrong somewhere? Thanks -- 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...
2003 Apr 16
1
pop3 coredump
...->callbacks->notify_no(&ibox->box, (gdb) l 259 if (!index->open(index, flags)) 260 break; 261 262 if (INDEX_IS_IN_MEMORY(index) && 263 storage->index_dir != NULL) { 264 storage->callbacks->notify_no(&ibox->box, 265 "Couldn't use index files", 266 storage->callback_context); 267...
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 Jun 23
2
End of File Error on index optmize
...sr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/ daemons.rb:133:in `run'' from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/ cmdline.rb:105:in `catch_exceptions'' from /usr/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/ daemons.rb:132:in `run'' ls -Alh /index_dir/ total 649M -rw------- 1 my_user my_user 3.2M Jun 22 15:40 _0.cfs -rw------- 1 my_user my_user 22M Jun 22 17:29 _1.cfs -rw------- 1 my_user my_user 22M Jun 22 18:53 _2.cfs -rw------- 1 my_user my_user 23M Jun 22 20:14 _3.cfs -rw------- 1 my_user my_user 22M Jun 22 22:01 _4.cfs -rw-------...
2007 May 29
1
When does ferret / AAF decide to reindex?
I am experience situations where accessing the index results in a complete re-indexing of the model. I have not been able to detect a pattern. Under what circumstances does Ferret (or AAF) decide that it needs to rebuild the index? I''ll be happy to look at the code relevant to this if someone could direct me to it. Thanks, John
2007 Apr 04
2
Please help with Drb server
...from (irb):1 ----- I have: Ferret 0.11.3 AAF plugin Rails 1.2.3 Ruby 1.8.6 Mongrel 1.0.1 On apache 2.2.3 My ferret+server.yml: production: host: ferret.mydomain.com port: 9010 pid_file: log/ferret.pid My model: acts_as_ferret( { :fields => [ :title, :body ], :remote => true } , :index_dir => "#{FERRET_INDEX_DIR}" ) Where FERRET_INDEX_DIR is defined in production.rb as "#{RAILS_ROOT}/../shared/ferret" -- Posted via http://www.ruby-forum.com/.
2007 Feb 14
0
acts as ferret creates redundant default index directory?
Hi I''m using a non-default index directory (acts_as_ferret :index_dir option) but the unused default (./index/) is still created at load time. The culprits are the two calls to ensure_directory in the init_index_basedir method in acts_as_ferret.rb that seem to be redundant. Removing the calls to init_index_basedir fixes the problem with no apparent side effects. Ch...
2006 Nov 30
1
usage and benefits of single-index with AAF
The documentation states: "single_index: set this to true to let this class use a Ferret index that is shared by all classes having :single_index set to true. :store_class_name is set to true implicitly, as well as index_dir, so don?t bother setting these when using this option. the shared index will be located in index/<RAILS_ENV>/shared ." [1] If I''m reading the code correctly, it seems that single-model searches will behave the same as before, and AAF/Ferret will add the extra column to th...
2006 Mar 21
2
Dovecot 1.0 beta3 and SUBSCRIBE
Using: default_mail_env = mbox:~/mail:INBOX=/var/mail/%u:INDEX=/var/indexes/%u I have a ~/mail/.subscriptions file (copied from .mailboxlist) Using: telnet localhost 143 a04 LSUB "" "*" => works fine, gives the list of subscribed folders a05 LIST "" * => works fine, gives the list of all folders a06 SUBSCRIBE "test" => deletes the