Score:0

How to remove a sort in hook_views_query_alter

cn flag

I've got a search API search view that has two sorts on it. relevance and then published date. This means that when I do a text search the relevancy score handles the sorting, but when there is no search text, the results are ordered by date. Recently I added some boosting, which has caused that fallback to stop working.

I'm trying to figure out how to remove that first sort (relevance) when there is no search_api_fulltext input.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.