cvan / metropolis

an app store that works offline
http://metropolis.paas.allizom.org/
0 stars 1 forks source link

have search worker return an array of ids matched instead of an array of all search docs #19

Open cvan opened 10 years ago

cvan commented 10 years ago

For each search query, we don't need to be passing around an array of objects of search docs. Instead, let's just pass back and forth a list of the doc._ids that match. Much easier everywhere, and that way we're not keeping track of two separate arrays: data.results and docs.