WIP: Search for Community using elasticsearch

First cuts for search feature for Community
Gotcha =)

On Fri, Oct 24, 2014 at 1:51 PM, Madhumitha Viswanathan
<notifications@github.com> wrote:

>> @@ -44,8 +44,11 @@
>>       (map-indexed (fn [i el] {:selected? (= i selected-index) :value el})
>>                    data))))
>>  
>> -(defn selection-list [data]
>> -  (->SelectionList data 0))
>> +(defn selection-list 
>> +  ([data] (selection-list data false))
>> +  ([data no-default-select?] (if no-default-select?
> When working with Sonali on design for the suggestions box, she suggested removing the "Search for" suggestion that showed up in the beginning if there were no suggestions. That meant the first thing in the list shouldn't be selected anymore. Example: If I was looking to search for string "post" and there was a thread suggestion, it'd always be selected and I couldn't search on the query string. So I modified selection list a little to allow not selecting the first value by default.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/hackerschool/community/pull/222/files#r19353418