Fix and improve search results processing.

- Fix deadlock that may occur with order processing.
- Fix results saved every search (remove flag probably added for debugging).
- Add results limit configuration.