Search results on SO seem to behave strangely, at least in this case:
Searching for "VB6DEP" returns no results
Searching for "VB6DEP.ini" returns three results
I would have expected the first search to at least return the results of the second, since it was less restrictive.
Is this due to the period character? Some flaw?
Case 1:
Case 2:
VB6DEP*
*
in middle makes sense, but at the end has to be explained. In google it seems like it's always*a* *b*
(fora b
query) and I think one has to use-
to narrow search to exclude longer words.*
) anywhere in the word, likeencour*
orEx*nge
" Note the*
at the end ofencour
.overflo
returns way fewer results than the "more restrictive"overflow
. Although Google does handle punctuation differently.overflo
IS the more restrictive term, since it presumably occurs much less frequently. Google does some kind of word-identification parsing which makes it seem that is the way to think about it..
special consideration would make searching for something likejava.lang.String
more difficult (it's probably not going to mean much for that specific example, but there are certainly cases where it's more significant).myString.indexOf('overflo')
, you would expect it to find occurances of 'overflo' and also occurances of 'overflow' right? Since 'overflow' starts with 'overflo'. But SO search is doing smart stuff with whitespace probably which is why it works out differently.