in app/models/search.rb [16:52]
def results
res = scope
res = scope.search_by_subject_title(parsed_query.freetext) if parsed_query.freetext.present?
res = res.repo(repo) if repo.present?
res = res.exclude_repo(exclude_repo) if exclude_repo.present?
res = res.owner(owner) if owner.present?
res = res.exclude_owner(exclude_owner) if exclude_owner.present?
res = res.type(type) if type.present?
res = res.exclude_type(exclude_type) if exclude_type.present?
res = res.reason(reason) if reason.present?
res = res.exclude_reason(exclude_reason) if exclude_reason.present?
res = res.label(label) if label.present?
res = res.exclude_label(exclude_label) if exclude_label.present?
res = res.state(state) if state.present?
res = res.exclude_state(exclude_state) if exclude_state.present?
res = res.author(author) if author.present?
res = res.exclude_author(exclude_author) if exclude_author.present?
res = res.number(number) if number.present?
res = res.exclude_number(exclude_number) if exclude_number.present?
res = res.assigned(assignee) if assignee.present?
res = res.exclude_assigned(exclude_assignee) if exclude_assignee.present?
res = res.status(status) if status.present?
res = res.exclude_status(exclude_status) if exclude_status.present?
res = res.starred(starred) unless starred.nil?
res = res.archived(archived) unless archived.nil?
res = res.archived(!inbox) unless inbox.nil?
res = res.unread(unread) unless unread.nil?
res = res.bot_author(bot_author) unless bot_author.nil?
res = res.unlabelled unless unlabelled.nil?
res = res.is_private(is_private) unless is_private.nil?
res = res.draft(is_draft) unless is_draft.nil?
res = lock_conditionally(res)
res = mute_conditionally(res)
res = apply_sort(res)
res
end