Search for INexact string
-
- PlutoniumLounger
- Posts: 16095
- Joined: 24 Jan 2010, 23:23
- Location: brings.slot.perky
Search for INexact string
For the time being, leaving aside the issue of whether my laptop has a TrackPad or Mouse, I wanted to see what the world thought of an over-sensitive wossit, and I thought that a search for mouse+sensitiv should find any posts with various forms such as 'sensitive", "sensitivity", and even typos such as "sensitivityityity" etc. When I smarten up and include a wild-card trailing asterisk in the search I see what I expect to see (circled in purple in the image immediately above).
But the first image returns me "81 matches", and as far as I can see not one of them contains the string "sensitiv" (without any trailing characters).
If NO posts in the Win10 forum contain the exact string "sensitiv", why did I get a non-zero number of matches for "sensitiv" AND "mouse"?
Ta ever so.
chris
You do not have the required permissions to view the files attached to this post.
The most expensive thing a man can own is ignorance.
-
- Administrator
- Posts: 79321
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Search for INexact string
You may prefer to use Google to search the Lounge. If you search for mouse sensitive site:eileenslounge.com, its algorithm will also return results for mouse sensitivity etc.
Best wishes,
Hans
Hans
-
- PlutoniumLounger
- Posts: 16095
- Joined: 24 Jan 2010, 23:23
- Location: brings.slot.perky
Re: Search for INexact string
Thanks Hans.
I think that this is tantamount to saying "Don't use the Lounge's search function", in a mild way.
Hence my question, sort of:-
Why did I get a non-zero number of matches for "sensitiv" AND "mouse"?
Shouldn't my search have returned NO results?
Thanks
Chris
The most expensive thing a man can own is ignorance.
-
- Administrator
- Posts: 79321
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Search for INexact string
I don't know how phpBB's search algorithm works, but my guess is that
a) If you don't specify wildcards, it only looks for whole word matches.
b) Since it finds no matches for "sensitiv", it looks at "mouse" only (unlike what you'd expect).
a) If you don't specify wildcards, it only looks for whole word matches.
b) Since it finds no matches for "sensitiv", it looks at "mouse" only (unlike what you'd expect).
Best wishes,
Hans
Hans
-
- PlutoniumLounger
- Posts: 16095
- Joined: 24 Jan 2010, 23:23
- Location: brings.slot.perky
Re: Search for INexact string
Ah! Thanks Hans. Indeed the result did fail my expectations.
This aspect of "search" is contrary to most other implementations i have come across.
Cheers
Chris
(This business of growing older and thinking that you are losing your mind can drive you crazy!)
The most expensive thing a man can own is ignorance.
-
- 5StarLounger
- Posts: 1139
- Joined: 21 Jan 2011, 16:51
- Location: Florida
Re: Search for INexact string
It appears the first search was for matches for "sensitiv" OR "mouse".
Using advanced search options might be more likely to get the hits you expect, or, as Hans noted, use GOOGLE and trust their algorithm format.
Using advanced search options might be more likely to get the hits you expect, or, as Hans noted, use GOOGLE and trust their algorithm format.
PJ in (usually sunny) FL
-
- PlutoniumLounger
- Posts: 16095
- Joined: 24 Jan 2010, 23:23
- Location: brings.slot.perky
Re: Search for INexact string
Hi PJ. My point exactly!
But the search mechanism is supposed to treat two separate strings as an AND conjunction by default.
That is, the following three forms should return identical results (zero matches):-
Code: Select all
sensitiv mouse
+sensitiv +mouse
sensitiv AND mouse
Chris
The most expensive thing a man can own is ignorance.
-
- PlutoniumLounger
- Posts: 16095
- Joined: 24 Jan 2010, 23:23
- Location: brings.slot.perky
Re: Search for INexact string
HOORAY!
I can now search posted comments on my second-favorite site.
Code: Select all
possessive site:https://historyofenglishpodcast.com
The nifty "site:" trick above searches users comments too.
(wanders off to try his luck elsewhere ...)
Thanks again
Chris
The most expensive thing a man can own is ignorance.