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 2014-11-01 20:14:37

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

Examples of Search

Hi there,

Just wondering how the search feature is implemented and if there are any good sites using the search function?

Cheers
Chumby

Offline

#2 2014-11-02 10:59:14

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

Re: Examples of Search

A few of the sites in the User Showcase are using Search: http://ce4.theturninggate.net/demos/showcase/

Search is implemented through Publisher. All albums created via Publisher can be available for search. During the Album Setup you can also choose to hide the album from search.


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 2014-11-02 12:00:18

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

Re: Examples of Search

Thanks Rob,

So from what I can see, search is all done on keywords?  eg. Caption.

If you say search for "waterfalls" it will search through all your albums and return any instance of the a photo with keyword "waterfall" and then display them on the results page in a new album?

Is that the process?

Cheers
Chumby

Offline

#4 2014-11-02 13:10:14

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

Re: Examples of Search

keywords and captions.
The search results will be displayed like a gallery/album. You'll designate a gallery template for this purpose.


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

Offline

#5 2014-11-02 13:24:50

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

Re: Examples of Search

OK, thanks that is great.

Do you know Rob if I can set up the keywords/captions in Photo Mechanic (IPTC Data) ?

Cheers
Chumby

Offline

#6 2014-11-02 15:54:15

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

Re: Examples of Search

Search also works on filenames and album titles.

Offline

#7 2014-11-02 16:15:05

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

Re: Examples of Search

OK, thanks Ben.

So any advantage in using "keywords" in album titles and filenames to ensure better search results?

Cheers
Chumby

Offline

#8 2014-11-02 17:29:29

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

Re: Examples of Search

Hi Chumby, photos that match on keywords will feature higher in the results.  Searching on photos is done primarily on keywords, and secondarily on matches of title, caption and filename.

Let's say you had these photos:

#1 keywords=apple,orange, title=fruit
#2 keywords=apple,orange, title=apple
#3 keywords=apple, title=fruit
#4 keywords=apple, title=apple 
#5 title=orange

When searching for the terms apple and orange, the results would be:

#2 (keywords match both search terms, title matches search term)
#1 (keywords match both search terms)
#4 (keywords match one search term, title matches one search term)
#3 (keywords match one search term)
#5 (title matches on search term)

Using keywords in the title or filename will elevate photos in the results over other photos that have the same level of keyword matching.

Last edited by Ben (2014-11-02 17:30:47)

Offline

#9 2014-11-02 17:52:06

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

Re: Examples of Search

OK.. great makes sense, Ben

Offline

#10 2014-11-02 19:36:07

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

Re: Examples of Search

chumby wrote:

OK, thanks that is great.

Do you know Rob if I can set up the keywords/captions in Photo Mechanic (IPTC Data) ?

Cheers
Chumby

I suppose so, as long as that metadata ends up in the Lightroom catalog.


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 2014-11-03 14:56:02

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Examples of Search

I've attempted to corral information from recent conversations about search into a page of documentation:
http://ce4.theturninggate.net/docs/doku … ith_search

Ben, feel free to edit or expand upon what's there. If anyone has additional questions or clarification, please let me know.

The page is listed under the CE4 Publisher section of our wiki.


Matt

The Turning Gate, http://theturninggate.net

Offline

#12 2014-11-03 21:18:00

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

Re: Examples of Search

I've expanded slightly on the documentation, including further sorting priority and mandatory or omitted strings of words.

There's a fair bit more to the search ordering, that increases the quality of ordering while getting a little technical.  I'll mention some aspects here:

Ranking is based on a score per matched photo.  The scores are useful for ranking rather than as absolute values.

Searching works on partial matches.

1. Keyword scoring is based on the proportion of a found keyword matching a search term.    The score of a keyword match is calculated as length-of-term / length-of-found-word.  For example, searching on a term 'apple' will score 1.0 with a found keyword of 'apple' and 0.555 on a keyword of 'pineapple'.

2. Title and filename matches are given higher weighting than caption matches.  This is on the assumption that titles and filenames are shorter than captions, so the existence of a search term is of more value.

3. Exact matches of a complete title or caption add further weight to the score.

Offline

#13 2015-01-25 18:44:53

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

Re: Examples of Search

Hi all,

Sorry to bring up an old thread... just getting back into this now...

It possible to search across multiple galleries?  Say I had 5 galleries, each with a couple of pictures of say a church in them.

Can I do a "master search" and return all the church images across multiple galleries?

Apologies if I have missed something.

Cheers
Chumby

Offline

#14 2015-01-25 19:10:10

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

Re: Examples of Search

Hi Chumby, search works across all searchable galleries (i.e. those not password-protected or marked as hidden from search).

Offline

#15 2015-01-25 19:16:20

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

Re: Examples of Search

Cheers Ben - that's good to know.

Is it possible then to have two levels of search - one search box say on a home page that searches everything, and then another search that just searches an album that you may be in?

How would this be implemented?

Appreciate the help.

Cheers
Chumby

Offline

#16 2015-01-25 23:09:04

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

Re: Examples of Search

Search is only site wide, not album specific


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

Offline

Board footer

Powered by FluxBB