"Phrase matching" in query?

2 views
Skip to first unread message

vrgoogler

unread,
Nov 23, 2009, 6:43:10 AM11/23/09
to Google AJAX APIs
Does the Google AJAX API support "phrase matching"?

When I wrap double quotes around my keyword, I get a different
"estimatedResultCount" than the one I see right from Google.com search
pages.

I am doing this in PHP...

For example:

http://www.google.com/#hl=en&q="paris+hilton"&gl=us

I see: Results 1 - 10 of about 38,700,000 for "paris hilton"

For Google AJAX API:

$keyword = '"paris hilton"';
$keyword = urlencode($keyword);

http://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=large&safe=moderate&filter=1&hl=en&gl=us&q=$keyword&start=0

[estimatedResultCount] => 4,990,000


==================

The result count is off by over 30 million. Any idea why?

Jeremy Geerdes

unread,
Nov 23, 2009, 6:46:24 AM11/23/09
to google-ajax...@googlegroups.com
This is a known bug in the estimatedResultCount property. Quite
frankly, estimatedResultCount is generally wildly inaccurate and
should not be depended on for mission-critical applications.

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
jgee...@mchsi.com

Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.

If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!

And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com
!
> --
>
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to google-ajax...@googlegroups.com
> .
> To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=
> .
>
>

Reply all
Reply to author
Forward
0 new messages