ZF-77: Sort does not work for itemSearch()


Setting the "sort" parameter of any query results in

Fatal error: Uncaught exception 'Zend_Service_Exception' with message 'You have entered an invalid value for Sort'


$query->category('Books')->Sort('title')->Author('Doe, John'); 
$results = $query->search() ;

probable reason: Variable $SearchIndex? is not set in function "_validateItemSearch" of Amazon.php (references to $SearchIndex? variable should become $options['SearchIndex'])

Also: List of valid sort values in $_searchSort should be language dependent

        (for example sort value "-pubdate" in category Books is valid for "DE" but not for "US")

Also: Variable $_sortVerbs is apparently never used.


  1. Using version 0.15, I am unable to repeat the "sort" parameter issue. I could not find any reference to any variables named "SearchIndex" ($SearchIndex).

  2. I agree, the list of valid sort values in $_searchSort should be language dependent. I'll try to work on a solution to this problem.

Here is just the difference between the US and DE sort values for the 'Books' category.……

  1. In 0.15 there still is no reference to the $_sortVerbs array.

Changing fix version to unknown.

Updated summary.

I believe this issue to have been resolved with SVN r4357. If this is not the case, please feel free to reopen with additional comment.