True sort-by-date may not be available for CSEs, but try this:
customSearchControl.setSearchStartingCallback(
this,
function(control, searcher, query) {
searcher.setQueryAddition(
'more:recent4');
});
This uses the "recent4" label to apply a bias for recent results.
AFAIK this may be the closest available *approximation* to sort-by-
date for CSEs.
Note: For reasons unknown to me, this solution might not work for
some CSEs.
-- omr
--
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en.