Add implicit and explicit search ordering.

As well as wholesale query attribute config.