This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 7 - Pages: 1 - Last Post: 18 May 21, 09:31 Last Post By: AndreasHGW Threads: [ Previous | Next ]
jrauland

Posts: 1
Registered: 18-Feb-2010
Combining keywords in a search
Posted: 31 Jan 15, 22:48
 
  Click to reply to this thread Reply
Is it possible to combine keywords in a search so that only photos containing both keywords are shown in the results?
Laza

Posts: 2,264
Registered: 6-Sep-2005
Re: Combining keywords in a search
Posted: 5 Feb 15, 21:13   in response to: jrauland in response to: jrauland
 
  Click to reply to this thread Reply
Now it looks for any of the keywords. At the current version you can't run combined search.
AndreasHGW

Posts: 66
Registered: 21-Sep-2014
Re: Combining keywords in a search
Posted: 17 May 21, 20:17   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Hello

Now we have 2021 an I would like to ask if there is any possibilty to combine 2 keywords i the search? I have a album with pictures of my hometown and need to search for all picture e.q. which have the keyword downtown and the keyword -1950.

e.q. search: downtown, -1950
result: shows all pictures from downtown until 1950.

I found you description at https://jalbum.net/blog/entry/filtering-and-sorting-in-albums.
But I dont understand how it works.

Andreas

Edited by: AndreasHGW on 17 May 2021, 20:35
Laza

Posts: 2,264
Registered: 6-Sep-2005
Re: Combining keywords in a search
Posted: 18 May 21, 08:22   in response to: AndreasHGW in response to: AndreasHGW
 
  Click to reply to this thread Reply
Attachment Using year.PNG (39.3 KB)
Attachment Entering year.PNG (280.8 KB)
Search works this way:

cat -> find any picture with the word "cat" in the related fields
cat dog -> find any picture with either cat or dog
cat and dog -> only pictures that have both words
"cat dog" -> only pictures containing the words exactly in this order

Unfortunately, "keywords" is not a numeric field, so even if you enter "1950" the skin cannot calculate before or after dates.

In order "Filtering and sort" could work you'd have to enter these dates as custom variables, in Edit mode -> Variables panel, see the attached screenshot. You could use the picture date, but that might be different from what you'd like to have.

Once the "year" variables present you can use them in filtering or sort, see the second screenshot.
AndreasHGW

Posts: 66
Registered: 21-Sep-2014
Re: Combining keywords in a search
Posted: 18 May 21, 09:01   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Hello
thanks. But at my album it does not work. You can try here: https://greifswaldbilder.de/fotos.
There are 2 pictures with the keyword Graffiti, but only one with the keyword "Graffiti" and "Geist". If you search for "Graffiti,Geist" or "Graffity Geist" it shows you 2 pictures. If you search for "Graffiti and Geist" it shows you a lot more pictures, but should show you just one.

Unfortunately, "keywords" is not a numeric field, so even if you enter "1950"
the skin cannot calculate before or after dates.

1950 is a keyword too.

Edited by: AndreasHGW on 18 May 2021, 09:08
Laza

Posts: 2,264
Registered: 6-Sep-2005
Re: Combining keywords in a search
Posted: 18 May 21, 09:22   in response to: AndreasHGW in response to: AndreasHGW
 
  Click to reply to this thread Reply
Your page is German, so you have to search for "graffiti und geist", otherwise it will find all pictures containing "and" too.
Laza

Posts: 2,264
Registered: 6-Sep-2005
Re: Combining keywords in a search
Posted: 18 May 21, 09:23   in response to: AndreasHGW in response to: AndreasHGW
 
  Click to reply to this thread Reply
1950 is a keyword too.
That is the problem with it. It's a string, not a numeric value.
AndreasHGW

Posts: 66
Registered: 21-Sep-2014
Re: Combining keywords in a search
Posted: 18 May 21, 09:31   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Thanks, that works :-)
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums