Dev tests sphinxsearch

This PR includes:

- Corrections in feature search by bbox only
- Integration tests for the search service
- Sort by detail string length after rank
- Small optimizations
- Better error handling