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

Is Searchable should retain result order. #1

Open
solnic opened this issue May 17, 2011 · 0 comments
Open

Is Searchable should retain result order. #1

solnic opened this issue May 17, 2011 · 0 comments
Labels

Comments

@solnic
Copy link
Contributor

solnic commented May 17, 2011

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant