Spotlight shines over more traditional file search utilities because it collects and searches the metadata on files all over your computer. A Spotlight search can look into your email messages from Mail (or other clients if they support Spotlight) while also looking into the contents of a PDF you downloaded and the file names in your Documents folder at the same time. Another example is that you could search on your computer for any image that was taken in a certain location (if you have photos with GPS EXIF data) or say taken with a certain camera.
Turning off Spotlight can be done with some GUI tools (eg. Onyx or TinkerTool System) or directly from the command line using the command sudo mdutil -i off /PATH/TO/VOLUME
(eg. sudo mdutil -i off /
to turn off Spotlight for your startup drive).
I can't help you with the main thrust of how to index ssl content, but will take an attempt at the learning mdfind commands.
The man page for mdfind is thin, but shows you that you can search on anything that is classified. In your case, try a mdfind command to get some web history results - for me, this command shows several files Safari has squirreled away for spotlight to index.
mdfind stackexchange | grep Safari | grep History | head
From there, you can use mdls
to pick apart what terms you might want to feed back into mdfind
:
mac:Users mike$ mdls /Users/mike/Library/Caches/Metadata/Safari/History/http:%2F%2Fapple.stackexchange.com%2Fquestions%2F25487%2Flock-screen-with-launchbar.webhistory | tail
kMDItemFSName = "http:%2F%2Fapple.stackexchange.com%2Fquestions%2F25487%2Flock-screen-with-launchbar.webhistory
kMDItemFSNodeCount = 14147
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 14147
kMDItemFSTypeCode = ""
kMDItemKind = "Safari history item"
kMDItemLogicalSize = 14147
kMDItemPhysicalSize = 16384
kMDItemURL = "http://apple.stackexchange.com/questions/25487/lock-screen-with-launchbar"
A few tags that might be of immediate use to you are kMDItemContentType, kMDItemFSName, and kMDItemURL
You can see my mac has processed several hundred items with a URL that begins with https:
mac:Users mike$ mdfind "kMDItemURL == 'https:*'" | wc -l
353
Best Answer
The algebraic way to do it is logbx=logax/logab. In spotlight, the log(x) function is log10x and the ln(x) function is logex. So taking logbx would be log(x)/log(b). However, rounding is significant enough to have the answer off even if it should be a whole number. For example, I tested log(4)/log(2) and got 1.9999999997 when it should be exactly 2.