Displaying 6 results from an estimated 6 matches for "search_index".
2005 Dec 02
1
cFerret ETA?
...n optimizing my index. I know this
is terribly inefficient, but in order to make sure that my
ActiveRecord model is in sync with my index, I''m optimizing after
every new record that I store, like so:
class Resume < ActiveRecord::Base
include Ferret
has_and_belongs_to_many :users
SEARCH_INDEX = File.dirname(__FILE__) + ''/../../searchindex''
# syncronization with ferret index
def after_save
@@index ||= Index::Index.new(:path => SEARCH_INDEX,
:create_if_missing => true)
@@index << {:id => id, :email => email, :contents => contents,
:date...
2005 Dec 02
1
Compile error on FreeBSD 4.10 gcc 2.95.4
...rder to make sure that my
> > ActiveRecord model is in sync with my index, I''m optimizing after
> > every new record that I store, like so:
> >
> > class Resume < ActiveRecord::Base
> > include Ferret
> > has_and_belongs_to_many :users
> > SEARCH_INDEX = File.dirname(__FILE__) + ''/../../searchindex''
> >
> > # syncronization with ferret index
> > def after_save
> > @@index ||= Index::Index.new(:path => SEARCH_INDEX,
> > :create_if_missing => true)
> > @@index << {:id =&g...
2006 Jul 07
4
Help installing Ferret
...owed everything here but at the last I get when loading page
get_results
Can only handle a String or a Query.
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/models/result.rb:27:in `search_each''
#{RAILS_ROOT}/app/models/result.rb:27:in `search_index''
#{RAILS_ROOT}/app/models/result.rb:15:in `count''
#{RAILS_ROOT}/app/controllers/search_controller.rb:25:in `get_results''
I''m beat,, I did everything I mostly understand what is happeneing on
the code.. But still nothing
Though at
require ''ferret'&...
2017 Aug 28
3
Gluster documentation search
Hello folks,
I spend some time today mucking about trying to figure out how to make our
documentation search a better experience. The short answer is, search kind
of works now.
Long answer: mkdocs creates a client side file which is used for search.
RTD overrides this by referring people to Elasticsearch. However, that
doesn't clear out stale entries and we're plagued with a whole lot of
2006 Mar 29
5
EdgeRails: "undefined method `weight'' for #<Hash:
...bundle/Contents/Resources/unix/lib/ruby/1.8/monitor.rb:229:in
`synchronize''
/Users/aravet/Desktop/Locomotive/Bundles/RubyonRails-1.0-Min.locobundle/Contents/Resources/unix/lib/ruby/site_ruby/1.8/ferret/index/index.rb:316:in
`search_each''
#{RAILS_ROOT}/app/models/result.rb:27:in `search_index''
#{RAILS_ROOT}/app/models/result.rb:15:in `count''
#{RAILS_ROOT}/app/controllers/search_controller.rb:31:in `get_results''
Any idea
--
Posted via http://www.ruby-forum.com/.
2006 May 15
16
Ferret not able to read a Lucene Index?
Hi all,
Having problems trying to get Ferret to read an index generated by
Lucene.
Am I right in thinking Ferret should be able to read a Lucene generated
index no problem?
Using the code snippets detailed in
http://www.ruby-forum.com/topic/64099#new
Any advice gratefully received.
Many Thanks,
Steven
--
Posted via http://www.ruby-forum.com/.