I'm using Magento 1.8 alpha 1. I wrote a shell script that changes some products (and calls save() afterwards). Now, all the products that were altered have been assigned new URL keys that looks like MD5 hashes.
I tried truncating the
core_url_rewrite table and re-indexing, but again, all those products still have meaningless URL keys.
If it helps, the products happen to be configurable and visible in both catalog and search.