mendicant-university/university-web — pull request #134 by ptn (2012-01-21 16:01:20+00:00)
Title: Finish full text search on a course

Hi Jordan,

I started where nerian left off and have fixed a bug. It happens when you pass an empty array as the second argument to texticle's #search, which results in an unscoped search. For example, if you search for

Course.search("test", some_course.assignments)

but some_course does not have any assignments, the method would search in all of the assignments in the database.

My ideas for next are:

* Provide a global search box located next to the link to the public site, so that users can search from anywhere.

* Show in the results screen the text snippet where the match was found. This will probably involve creating a TextSearchResult model.

* Highlight the keyword in said snippet.

How does that sound?