質問

I need to change the results ordering via setSearchStartingCallback.

This is to order the results by date if user is on "news" refinement (tab).

customSearchControl.setSearchStartingCallback(this, function(sc, searcher, query) {
     document.getElementById('SearchForm_Search').value = query;              
});
役に立ちましたか?

解決

There wasn't a setting to this using the google-custom-search api, I ended up using custom javascript magic

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top