Hmmm... I think a `query` parameter must be required with `search.profile` as the profiles are all based on Elasticsearch's `custom_filters_score`, which requires a query. I think we could accomplish the behavior you want by changing

    if profiles

to

    if profiles and query

then falling on to the normal `elsif query and filter`, `elsif query`, ...