To edit pages or tickets please login with username/password: aaf/aaf

Changeset 298

Show
Ignore:
Timestamp:
01/16/08 21:38:48 (9 months ago)
Author:
jk
Message:

let ferret index logger inherit the log level of AR::Base's logger

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugin/acts_as_ferret/lib/act_methods.rb

    r258 r298  
    168168      # It will include all content fields *not* marked as :untokenized. 
    169169      # This fixes the otherwise failing CommentTest#test_stopwords. Basically 
    170       # this means that by default only tokenized fields (which is the default) 
    171       # will be searched. If you want to search inside the contents of an 
    172       # untokenized field, you'll have to explicitly specify it in your query. 
     170      # this means that by default only tokenized fields (which all fields are 
     171      # by default) will be searched. If you want to search inside the contents  
     172      # of an untokenized field, you'll have to explicitly specify it in your  
     173      # query. 
    173174      # 
    174175      # Unfortunately this is not very useful with a shared index (see 
  • trunk/plugin/acts_as_ferret/lib/class_methods.rb

    r291 r298  
    276276        result = retrieve_records(id_arrays, find_options) 
    277277        total_hits = result.size if find_options[:conditions] 
    278  #       total_hits += offset if offset 
    279278        if limit && limit != :all 
    280279          result = result[offset..limit+offset-1] 
  • trunk/plugin/acts_as_ferret/lib/index.rb

    r198 r298  
    99      @aaf_configuration = aaf_configuration 
    1010      @logger = Logger.new("#{RAILS_ROOT}/log/ferret_index.log") 
     11      @logger.level = ActiveRecord::Base.logger.level 
    1112    end 
    1213     

To edit pages or tickets please login with username/password: aaf/aaf