Skip to content

Instantly share code, notes, and snippets.

@kyu999
Last active August 29, 2015 14:10
Show Gist options
  • Save kyu999/fe8ca812a571d17e3c12 to your computer and use it in GitHub Desktop.
Save kyu999/fe8ca812a571d17e3c12 to your computer and use it in GitHub Desktop.
SearchDirection
検索の方針;
1. 複数の検索項目をユーザーが入力しそれに伴い結果を絞っていく。
2. 検索対象は現在繋がっていないユーザーに限る
3. 得意分野に関してはまず得意分野をチェックボックスにて絞ってもらい必要とあらばフリーワードによってその得意分野の詳細分野に引っかかる単語が入力されたならばそのcategoryのidを持っているユーザーに限る。
process:
-> get category and free word
-> find related category from categories table by free word(just simple like search)
-> get id(detailed category) lists
-> limit == users that have the categories at least one ;
(-> additionally, if the users have the category ids that matched with keyword results, add that users? or just add this as additional limitation?)
4. 名前は絞り込みではなく単独の検索。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment