I'm working on a Drupal 5.x book-selling site and using the Views Fast Search module. In the search results, the client wants the user to be able to choose (from a select box) from a variety of displays, e.g.: sort by bestselling book, sort by word count, sort by most recently added, etc.
Some of these are straightforward but others require a more complicated query. For instance, the client wants bestselling view to take into account a number of variables, so it has to join together several tables, do calculations involving several variables, etc. In short, it's nothing I have been able to do via the view configuration in the Drupal admin interface.
The other part of my problem is that we have overridden the default pagination so it needs to use the themed version. But this module doesn't work with that version because if (a) I set it to be paginated with x number of results per page, it returns x as the count (not the overall total number of results), messing up the count query, or (b) if I disable pagination, it never gets to the themed pagination routine.
So my questions are: how do I define the complicated query I've described in the code (assuming I can't do via the module configuration interface)? And how do I make it use my themed pagination?
Thanks.