I don't know if there's any way to do this because it just uses Amazon's API, but the autocomplete results that are presented in the field widget are almost useless.
See attached screenshot of what appeared when I entered "ipod".
And then look at the next screenshot of what comes up when I search Amazon's site for "ipod".
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | amazon-field_autocomplete_results-1127540-5.patch | 791 bytes | the_g_bomb |
| #7 | amazon-field_autocomplete_results-1127540-5-1.patch | 1004 bytes | the_g_bomb |
| #3 | field_autocomplete_results-1127540-3.patch | 443 bytes | shawn dearmond |
| #3 | amazon_better_ipod_search_results.png | 66.94 KB | shawn dearmond |
| amazon_site_search_ipod.png | 186.74 KB | shawn dearmond |
Comments
Comment #1
rfayTake a look at what's being done for the search, and then you can take a look at how the search request can be narrowed. For example, it might be that we need a "category" select next to the search, or other ways to narrow the search.
Note that more specific searches do better of course.
The search may not be by title... maybe it's by everything?
Comment #2
shawn dearmond commentedIn digging around with this, I found that the Amazon field module uses a "Blended" search, which means that the search is over all categories. That makes sense.
After some involved Googling, I discovered that Amazon API doesn't allow for a "sort" parameter with "Blended" searches.
See: https://forums.aws.amazon.com/thread.jspa?threadID=7057
Maybe a category select is a good idea.
Comment #3
shawn dearmond commentedWow. Talk about night and day. This patch totally fixes the problem.
All I did was change the SearchIndex from "Blended" to "All".
See attached screenshot for proof.
Comment #4
shawn dearmond commentedComment #5
rfayCommitted: a4e5a5abb01c3437c13dc0b664300c18e54af478
Comment #6
rfayLet's fix this in D6 as well.
Comment #7
the_g_bomb commentedI backported this to 6.x-1.x, but found another instance of the Blended being set as the SearchIndex, so thought I would provide 2 patches one with the changes that were implemented in the D7 branch and one with both Instances of Blended being removed.
I haven't had a chance to double check if both need to be replaced, hence the 2 patches.
amazon-field_autocomplete_results-1127540-5.patch implements the above fix which is also commit fa68aa5 on 6.x-1.x.
The second patch removes the second instance only.
Comment #8
the_g_bomb commentedI'll check the second patch at some point if someone else doesn't beat me to it.