Sorted by Date?

60 views
Skip to first unread message

CyberCoder

unread,
Jul 27, 2006, 2:03:30 PM7/27/06
to Google AJAX Search API
Is there anyway to have the BlogSearch put results "Sorted by Date"
instead of "Sorted by Relevance"?

mhl

unread,
Jul 27, 2006, 3:35:49 PM7/27/06
to Google AJAX Search API
Not at this time. We could certainly consider adding an API or
configuration setting for this though? How important do you think it is
that this sort of thing be exposed through ui vs. just available to
applications (similar to what we did with site restrictions)

CyberCoder

unread,
Jul 27, 2006, 3:42:08 PM7/27/06
to Google AJAX Search API
Probably not real important, seeing as I was the only one here to even
mention it.

But, when you are trying to use the API to search and you want the most
recent, there is no way to see it. Just like every other search in any
Google system.

And that would almost seem to be an error. IMHO.

mhl

unread,
Jul 31, 2006, 7:45:07 PM7/31/06
to Google AJAX Search API
ok, its there. doc's should be visible soon, blog post also in flight.

GblogSearch is the only one so far to support this, but now you can
impact result ordering through the UI (behind the gear icon) or through
progrmatic access

.setResultOrder(GSearch.ORDER_BY_RELEVANCE) - default, order by
relevance
.setResultOrder(GSearch.ORDER_BY_DATE) - order by date

CyberCoder

unread,
Jul 31, 2006, 8:04:49 PM7/31/06
to Google AJAX Search API
Excellent, works great !!

krishna...@gmail.com

unread,
Aug 10, 2006, 7:46:27 AM8/10/06
to Google AJAX Search API
i want to know how can we set sort by date in prg?
i am using google.jar
GoogleSearchResult class and
GoogleSearchResultElement

if u know pls let me know?
krishna

mhl

unread,
Aug 11, 2006, 1:24:14 AM8/11/06
to Google AJAX Search API
It sounds like you are talking about the Google SOAP Search API. This
forum is providing instructions and advice for the Google AJAX Search
API: http://code.google.com/apis/ajaxsearch/

The Google SOAP Search API is web search results only and does not
offer a sort by date option.

Ryan

unread,
Aug 14, 2006, 4:09:23 PM8/14/06
to Google AJAX Search API
That's great! Would love to see it for web searches too. With that and
pagination through large result sets I'd be willing to use this tool in
production.
Reply all
Reply to author
Forward
0 new messages