[pacman-dev] [PATCH 01/16] refactor common code in query_search/sync_search