9

For our web app, which will use Amazon's API as a basis for some of the site's main interactions, we required the ability to do a generalized search of Amazon's products and return results based on relevancy. The expectation was that their API would work exactly like their actual site's search.

Unfortunately it does not. For instance, querying "joy of cooking" does not return a link to the famous cook book, but to some food processor. Contrarily, on the actual site, one would see the book isn't just first, but it and any derivations occupy the top 5 or so results.

Is there a way of getting this level of relevancy search from Amazon's API without specifying a node to browse through? We need to be able to search everything at once, and the API seems very limited on parameter sets.

Daniel Widdis
  • 8,424
  • 13
  • 41
  • 63
dclowd9901
  • 6,756
  • 9
  • 44
  • 63

1 Answers1

3

The answer is that, if you use "All" as your sorting basis, rather than "Blended", you will get results that are inline with Amazon's own product search. Older docs don't seem to account for this discrepency, but testing both methods has shown "All" to be the preferred product sorting method.

http://docs.amazonwebservices.com/AWSECommerceService/2010-11-01/DG/

Pagesearch under "SearchIndex: All"

You don't get any item sorting options with this method, but if all you want is "most relevant" results, this is the preferred method.

dclowd9901
  • 6,756
  • 9
  • 44
  • 63
  • Thanks for posting the reply. I guess I have some other problem going. I do use All as the search index, and have the search word as the keyword, and return a large response group. But for some reason it doesn't return the same results as Amazon...a lot of the products are missing. Thanks anwyay – iman453 May 26 '11 at 21:47
  • When I had originally asked the question, the results I was getting weren't just missing a few items. They were flat out terrible, so we probably didn't have the same problem. Sorry I couldn't be of more help to you. – dclowd9901 May 28 '11 at 23:30
  • 1
    It looks like PageSearch has been replaced by ItemSearch. Do you have any comments on how this affected your search results? I have pretty much the same needs as you, so I'd like to know if ItemSearch with a SearchIndex of 'All' is getting you results close enough to Amazon's. In my quick tests, this has not been the case! – elsurudo Mar 12 '12 at 15:34