Add support for multitype search and eager loading #131

wants to merge 3 commits into
Commits on Nov 4, 2011
  1. Allow searches to span multiple types.

    dylanahsmith committed Oct 21, 2011
    * Only uses one database query per type is used for eager loading.
    * The time complexity of preserving the search result order
      in eager loading is now linear rather than quadratic.
  2. Tolerate missing records when eager loading search results.

    dylanahsmith committed Oct 21, 2011
    Missing records are tolerated since a record may be deleted then
    searched for before the elasticsearch index is refreshed. Also,
    the record may be deleted just after the search before the eager
    loading request is processed.
  3. Attempt to simplify the eager loading code.

    dylanahsmith committed Nov 4, 2011
    Took advantage of some ActiveSupport methods, since ActiveSupport is
    already a dependancy of ActiveModel.