Comment 4 for bug 865987

Revision history for this message
Marc Tardif (cr3) wrote :

The SearchSet base class is derived by several classes in addition to the PersonSet, and the same applies to the corresponding SearchParams base class. So, it is worth coming up with a solution that could be used consistently throughout all these derived classes. This is especially true considering that unordered search results aren't really useful, making it worthwhile to apply across the board.

With this context in mind, I've been thinking of ordering search results for systems by relevance. The problem with this ordering is that the actual search text converted as grams needs to be passed to the order parameter. This cannot really be done in the context of the SearchParams but rather in the SearchSet, more specifically its derived class. This will require some modifications to the existing SearchSet methods where the ordering parameter is sometimes passed without the text.