Updated global search query to use the shared store preferences