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

Commit

Permalink
Merge pull request #438 from Malorn44/search-crn
Browse files Browse the repository at this point in the history
Added crn to search parameters
  • Loading branch information
Bad-Science authored Apr 10, 2019
2 parents 4824f3b + ca0d728 commit 4c8fb7e
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 4c8fb7e

Please sign in to comment.