refactoring search API reference