Statistics:
So, firstly, this isn't as easy as it appears so I've had to make some reasonable adjustments here and there to, hopefully, capture the bulk of what people are looking for.
Overview Tab:
For now it is just a dump of the dashboard widget information (as not everyone will want the dashboard widget to be the only place to get some stats...) plus a quick one-liner showing what percentage of all searches are tag searches or include tags as a filtering element. Will look to improve this later on.
Terms Tab:
This is mostly EXACT MATCHES! That means spelling and formatting counts. There is no "Fuzzy" word and phrase matching going on; honestly that's way beyond the scope of this project for the time being. However, I did want to make an effort to merge together a common instance - that being when someone searches for something without quote, and when they search for it with quotes. For example:
Mass Effect
"Mass Effect"
As it stands right now, those will be two uniquely different searches. And counted separately. What if I remove the double quotes?
Mass Effect
Mass Effect
Now those will both be counted the same. Much better. So for terms, I do that.
Words Tab:
This is just an extension of the terms search. For each term, I break it apart into individual words, and then do the same counting on them. There is, naturally, a problem. Letters and common short words. A, the, then, it, its, it's and so on (for English at least). This means I have to parse this stuff through stop words files. Right now I'm forcing English AND Russian stopwords on through. I can, later on, option this stuff out for configuration in the settings but until then, if you have other languages besides English hand Russian, pls give a yell so I can add the stop words json word lists into the routine. I also nuke probably all non-alphanumeric characters here so we are dealing with just "words" and nothing else.
Tags Tab is pretty much the same as the words tab.
Hey! I forgot to include standardized letter casing during matching on these things - and I should - look for 2.1 real soon, that should tackle the last of the big things here!