How does the search work?