Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2020-02-15 20:44:04

chumby
Member
Registered: 2014-10-23
Posts: 188

Search Strings

Hi there,

Just wondering about searching with " " (exact phrases).

On my site I search for "West Coast" and I am returned results for "North West Coast".

Shouldn't these be excluded?  And should I only get images returned with meta data equalling "West Coast" ?

Or am I understanding this incorrectly?

Cheers,
Chumby.

Offline

#2 2020-02-15 22:34:08

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Search Strings


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2020-02-16 05:40:23

chumby
Member
Registered: 2014-10-23
Posts: 188

Re: Search Strings

Great thanks, Rod.  I will check that out.

Cheers
Chumby

Offline

#4 2020-02-16 14:44:44

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

Re: Search Strings

chumby wrote:

I search for "West Coast" and I am returned results for "North West Coast".

That's normal. Works the same at Google and other search tools.

The specific text you want to find is contained in the result you're showing.

Last edited by JimR (2020-02-16 14:44:59)


--Jim

Offline

#5 2020-02-16 17:41:54

chumby
Member
Registered: 2014-10-23
Posts: 188

Re: Search Strings

Thanks Jim,

Yes was just wanted results for West Coast so I put them in quotes, as in "West Coast" and expected only the exact match of "West Coast' to be returned, not "North West Coast".

Will read up further on rod link.

Thanks for the help.

Cheers
Chumby.

Offline

#6 2020-02-16 18:07:27

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Search Strings

That's what was returned: items that included the text "West Coast". Compare that with just searching West Coast without quotes and you might get results like West Indies or Gold Coast, neither of which include the full search text.

Out search doesn't provide a means to search for the complete value of a field. E.g. If your full description was "West Coast" then there's no way to search for that without also getting results where the full description is "North West Coast".

Offline

#7 2020-02-16 19:59:42

chumby
Member
Registered: 2014-10-23
Posts: 188

Re: Search Strings

OK thanks, Ben.

Will keep that in mind as I roll out keywords for images etc.

Is it possible to get an exact match for a specified string (ie. in quotes) in future veriosns of Backlight do you think?

Cheers,
Chumby

Offline

#8 2020-02-17 22:42:30

tgalex
Member
From: Saline, Michigan
Registered: 2016-06-22
Posts: 102
Website

Re: Search Strings

Chumby - have you considered using “Northwest Coast” instead of “North West Coast”?  Would that correct the search issue Ben?

Offline

#9 2020-02-18 05:20:45

chumby
Member
Registered: 2014-10-23
Posts: 188

Re: Search Strings

Thanks Terry for the idea, but the area is known as North West East, East Coast, West Coast etc.  I could change the keywords, but hence no-one would search for Northwest Coast, as it is not known as that.

Cheers
chumby

Offline

#10 2020-02-18 07:15:19

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Search Strings

chumby wrote:

OK thanks, Ben.

Will keep that in mind as I roll out keywords for images etc.

Is it possible to get an exact match for a specified string (ie. in quotes) in future veriosns of Backlight do you think?

Cheers,
Chumby

When putting a phrase in quotes, the search function is searching for a specified string. And it will return results that contain that string. The only way you can eliminate other words is by specifying those words in the search parameters

if you wanted to conduct a search for "west coast" but wanted to eliminate the keywords north and south, use:

"west coast" -north -south


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#11 2020-02-18 18:42:00

chumby
Member
Registered: 2014-10-23
Posts: 188

Re: Search Strings

Great, thanks Rod.

I can put that search string in the link I have for "West Coast".  That will help for people browsing my search list but I doubt anyone browing my site would type in that full search string.

I wonder if there is a way if someone types in "West Coast" I could create a condition which then defaulted to the search "West Coast" -north -south ?  That would be dandy.

Cheers
Chumby

Offline

#12 2020-02-18 22:06:41

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Search Strings

chumby wrote:

I wonder if there is a way if someone types in "West Coast" I could create a condition which then defaulted to the search "West Coast" -north -south ?  That would be dandy.

I don't know, but you could add some instruction on your search page (or in a pop-up box on the search page) to let visitors know about the search options


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2020-02-19 16:31:11

chumby
Member
Registered: 2014-10-23
Posts: 188

Re: Search Strings

Cheers Rod - now have that implemented with your tutorials on "Pop-Up_Windows"

Cheers
Chumby

Offline

Board footer

Powered by FluxBB