0

My search in url with BOSS v2 returns fewer results than I expected

Hi

I'm happily using the BOSS v2 API to return results from basic searches. However, my query relates to using the API to search in urls using the optional argument url.

When I search for particular urls via (1) the web page at yahoo.com, I get over 30 million results. However, when I perform what I think is an identical search using (2) the API, I get just 1 result.

Here are details of the two searches I performed:
  • 1. Web page at yahoo.com: inurl: barack obama

  • 2. API url: http://yboss.yahooapis.com/ysearch/web?format=json&oauth_consumer_key=<my consumer key>&oauth_nonce=<nonce>&oauth_signature=<signature>&oauth_signature_method=<method>&oauth_timestamp=<timestamp>&oauth_version=1.0&q=&url=barack%20obama (this just returns http://www.daylife.com/topic/Barack_Obama)


Please could you tell me:
  • If the two search methods outlined above are expected to be equivalent?

  • If the answer to the above question is no, how can I retrieve results from the API which are similar to the results returned from the web page at yahoo.com?


Any help would be much appreciated!

Many thanks

Marcus

by
3 Replies
  • I don't think the first example is doing what you intend it to, due to the extra space between inurl: and barack. If I query:

    inurl:barack obama


    then I receive a single URL, just like your BOSS example returns.

    best,
    -Graham
    0
  • Thanks Graham but I get 3.7 million urls returned when I search for inurl:barack obama in yahoo.com.

    Many thanks

    Marcus
    0
  • Hi Marcus,
    Use the same search in BOSS as well /ysearch/web?q=inurl:barack obama

    best,
    Rahul


    QUOTE (MarcusC @ Jun 11 2011, 01:08 AM) <{POST_SNAPBACK}>
    Thanks Graham but I get 3.7 million urls returned when I search for inurl:barack obama in yahoo.com.

    Many thanks

    Marcus
    0

Recent Posts

in General Discussion at YDN