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

Changeset 356

Show
Ignore:
Timestamp:
09/15/08 16:25:12 (2 months ago)
Author:
jk
Message:

add support for custom analyzers to total_hits

Files:

Legend:

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

    r351 r356  
    8484    # Total number of hits for the given query.  
    8585    def total_hits(query, options = {}) 
    86       ferret_index.search(query, options).total_hits 
     86      ferret_index.search(process_query(query, options), options).total_hits 
    8787    end 
    8888 

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