Changeset 298
- Timestamp:
- 01/16/08 21:38:48 (9 months ago)
- Files:
-
- trunk/plugin/acts_as_ferret/lib/act_methods.rb (modified) (1 diff)
- trunk/plugin/acts_as_ferret/lib/class_methods.rb (modified) (1 diff)
- trunk/plugin/acts_as_ferret/lib/index.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plugin/acts_as_ferret/lib/act_methods.rb
r258 r298 168 168 # It will include all content fields *not* marked as :untokenized. 169 169 # 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. 173 174 # 174 175 # Unfortunately this is not very useful with a shared index (see trunk/plugin/acts_as_ferret/lib/class_methods.rb
r291 r298 276 276 result = retrieve_records(id_arrays, find_options) 277 277 total_hits = result.size if find_options[:conditions] 278 # total_hits += offset if offset279 278 if limit && limit != :all 280 279 result = result[offset..limit+offset-1] trunk/plugin/acts_as_ferret/lib/index.rb
r198 r298 9 9 @aaf_configuration = aaf_configuration 10 10 @logger = Logger.new("#{RAILS_ROOT}/log/ferret_index.log") 11 @logger.level = ActiveRecord::Base.logger.level 11 12 end 12 13
