Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
Added crn to search parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Schwartz committed Apr 9, 2019
1 parent 68eb1f4 commit b1a4b49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/app/models/listing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def self.search search_string
to_tsvector(subjects.shortname) ||
to_tsvector(to_char(courses.shortname, '9999')) ||
to_tsvector(listings.longname) ||
to_tsvector(sections.crn) ||
to_tsvector(coalesce((string_agg(array_to_string(sections.instructors, ' '), ' ')), '')) ||
to_tsvector(coalesce((string_agg(array_to_string(listings.tags, ' '), ' ')), ''))
AS document FROM listings
Expand Down

0 comments on commit b1a4b49

Please sign in to comment.