Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

Is Searchable should retain result order. #1

@solnic

Description

@solnic

As discussed dm-is-searchable should retain the result order from the search adapter since that's what they are good at.

DKubb suggested taking the "results we get from the storage repository and pushing them on to a Hash, where the key is the Resource Key and the value is the Resource (so basically the same structure as the IM), and then return: hash.values_at(*ids_from_search_in_order)"

Cheers.
Shane


Created by Shane Hanna - 2009-05-30 07:52:40 UTC

Original Lighthouse ticket: http://datamapper.lighthouseapp.com/projects/20609/tickets/871

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions