Apple's Yosemite OS does, indeed, collect user search data, but the process is both anonymized and totally optional.
Apple OS X Yosemite's Data Collection Is No Big Deal : Read more
Apple OS X Yosemite's Data Collection Is No Big Deal : Read more