Amazon's help pages for authors say that keywords, sales history and Best Sellers Rank all affect where a book shows up in search. That's as far as it goes. On Amazon's own seller forum, a community manager says plainly that Amazon doesn't publish its search rules.
What Amazon does tell authors
- Keywords. You get up to seven keywords or short phrases. Amazon's advice is to think like a reader, and to search each keyword on Amazon before you publish. If the results look wrong for your book, change it.
- Categories. You pick three when you set up the book. Amazon describes them as digital shelves.
- Sales rank. It's based on your book's activity compared with other books. Recent activity counts more than older activity, and each format has its own rank.
- Star ratings. Not a plain average. Newer reviews and verified purchases count for more.
- Timing. Most changes take up to 72 hours to show.
So there's no formula. But the keywords and categories are yours to set, and Amazon tells you how long to wait before judging a change. That's enough to test what works for your own book.