Interesting search behavior

Found a problem? Post details on BeerTools Pro errors and how they are caused.
Post Reply
User avatar
bpylant
Pale Ale
Pale Ale
Posts: 83
Joined: Tue Oct 31, 2006 10:31 pm
Location: Merchantville NJ

Interesting search behavior

Post by bpylant » Sun May 24, 2015 11:54 am

Not sure if this an actual bug, but it is a bit odd:

If I type '565' in the search field BTP does not find White Labs WLP565 (I assume because it is looking for the entire string and I didn't include 'WLP').

However, if I type 'WLP565' it finds both 565 and 566, which implies that it is searching for partial matches as well as complete.

Weird, eh?
BTP 2.0.18 / Database 8.2

Computer Info:
Mac OS X 10.12.2
2.2 GHz Intel Core i7
16 GB RAM

User avatar
jeff
Imperial Stout
Imperial Stout
Posts: 1507
Joined: Sun Jan 09, 2000 8:16 pm
Location: Hollywood, SC
Contact:

Re: Interesting search behavior

Post by jeff » Mon May 25, 2015 5:07 pm

WLP565 is found in the description of WLP566 which is why it comes up in the search, too.
Jeff
BeerTools.com Staff

User avatar
bpylant
Pale Ale
Pale Ale
Posts: 83
Joined: Tue Oct 31, 2006 10:31 pm
Location: Merchantville NJ

Re: Interesting search behavior

Post by bpylant » Mon May 25, 2015 9:35 pm

Ahhh, makes sense! :)
BTP 2.0.18 / Database 8.2

Computer Info:
Mac OS X 10.12.2
2.2 GHz Intel Core i7
16 GB RAM

User avatar
jeff
Imperial Stout
Imperial Stout
Posts: 1507
Joined: Sun Jan 09, 2000 8:16 pm
Location: Hollywood, SC
Contact:

Re: Interesting search behavior

Post by jeff » Tue May 26, 2015 3:59 pm

If I’m not mistaken, the search will return a result when the search phrase is found at the start of a word rather than in the middle of one. That’s why “565” doesn’t return a result while “WLP565” does.
Jeff
BeerTools.com Staff

Post Reply