Author Topic: search failure  (Read 986 times)

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
search failure
« on: December 21, 2023, 02:33:46 AM »
I made a search that produced 700 or so files. Some of these files have the word 'contact' in the filename. I then check the 'Only search Contact Sheet items' box & search for 'contact' which returns no files. See screenshots.

What's going wrong?

David Hoffman

Online Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24691
    • View Profile
    • Camera Bits, Inc.
Re: search failure
« Reply #1 on: December 21, 2023, 09:50:01 AM »
David,

It's searching for "poll tax" and "contact", do any of the original items match both terms?

-Kirk

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
Re: search failure
« Reply #2 on: December 21, 2023, 09:54:21 AM »
All the items in the contact sheet are from a search for "Poll Tax". You'll see the term in the filenames in the screenshot. A few also have the word "contact" in the filename so they should be found unless I've found a new mistake to make.

David

Online Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24691
    • View Profile
    • Camera Bits, Inc.
Re: search failure
« Reply #3 on: December 21, 2023, 10:04:44 AM »
David,

For the images that have "contact" in their filenames, what other metadata do they have that matches "Poll Tax"?

-Kirk

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
Re: search failure
« Reply #4 on: December 21, 2023, 10:31:59 AM »
File name, Caption, Keywords & Title/Object name.

Online Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24691
    • View Profile
    • Camera Bits, Inc.
Re: search failure
« Reply #5 on: December 21, 2023, 10:37:11 AM »
David,

If that's the case then I don't know why that you're getting zero results.  If you want to turn on the CATALOG_LOGGING and get me a log once you've reproduced the problem, I'll look into it.

-Kirk

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
Re: search failure
« Reply #6 on: December 21, 2023, 10:44:35 AM »
Thanks Kirk, tomorrow.
David

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
Re: search failure
« Reply #7 on: December 22, 2023, 12:31:20 AM »
I did a catalog sync last night before I shut down and now the search is working as it should. Go figure...

I did have CATALOG_LOGGING turned on so I'm attaching the log here in case there's anything of interest but this particular problem seems to have evaporated for now.

David

Online Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24691
    • View Profile
    • Camera Bits, Inc.
Re: search failure
« Reply #8 on: December 22, 2023, 10:31:10 AM »
David,

Thanks for the zipped log archive.  There are two zero result searches captured in your log files:

expr="((\"poll tax\") and (contact)) and (asher)"
and
expr="(((\"poll tax\") and (contact)) and (asher)) and (notting car)"

I don't see one that is simply:
expr="(\"poll tax\") and (contact)"
...that also failed.  I see that search expression returning 9 results yesterday at 17:55:33 and 18:29:59 so I'm not sure if the problem wasn't logged or some other problem occurred.

-Kirk

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
Re: search failure
« Reply #9 on: December 23, 2023, 02:38:08 AM »
David,

Thanks for the zipped log archive.  There are two zero result searches captured in your log files:

expr="((\"poll tax\") and (contact)) and (asher)"
and
expr="(((\"poll tax\") and (contact)) and (asher)) and (notting car)"

I don't see one that is simply:
expr="(\"poll tax\") and (contact)"
...that also failed.  I see that search expression returning 9 results yesterday at 17:55:33 and 18:29:59 so I'm not sure if the problem wasn't logged or some other problem occurred.

-Kirk

That's interesting. The log isn't consistent with my (fairly clear) recollection of the searches.

Quote
There are two zero result searches captured in your log files:

expr="((\"poll tax\") and (contact)) and (asher)"
and
expr="(((\"poll tax\") and (contact)) and (asher)) and (notting car)"

Before I made the "poll tax" and "contact" search I had made a search for "asher". That should have returned a handful of files but returned none. Looking for the same images I then tried "notting" and "car" (without "asher") which did produce the files I needed.

A little later I searched for "poll tax" and then searched the result for "contact" which, although I could see files with "contact" in the window, returned nothing. At no time did I make the searches with the 3 and the 4 terms that you see in the log. The screenshots that I made (which are from the result of a "poll tax" search) show the zero result window only containing "poll tax" and "contact", not "notting" and/or "asher" - but it appears that those terms were in fact included in PM+'s search. That would fit with the zero result seen.

Could PM+ have still been looking for those 2 terms from the earlier search despite the contact sheet being searched having come from a "poll tax" search and "notting" and/or "asher" not being used in my own input - and not being shown in the zero result message?

This was all late morning yesterday, the search returning 9 results was late yesterday afternoon after the restart and sync following which the problem was no longer showing up.

David

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
Re: search failure
« Reply #10 on: January 02, 2024, 02:39:21 AM »
Best wishes for 2024 to all!

As well as the search problem (above) where PM+ seemed to be using terms from a previous search but not showing those terms there seems to be another anomaly.

A search for stop the city protest police produces no results but a search for "stop the city" protest police returns the expected images. See screenshots - all the terms in the 1st search are present so I'd not expect the quotes in the 2nd search to be needed. Am I misunderstanding how the search works?

David

Online Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24691
    • View Profile
    • Camera Bits, Inc.
Re: search failure
« Reply #11 on: January 02, 2024, 10:51:18 AM »
David,

Probably has to do with 'the' being a stopword.  What happens if you leave off the double quotes but eliminate 'the' from the query?

-Kirk

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
Re: search failure
« Reply #12 on: January 03, 2024, 01:40:41 AM »
Quote
What happens if you leave off the double quotes but eliminate 'the' from the query?

That search (the 1st below) gives no results. I've done a dozen or so combinations and the word order turns out to be important. That's a surprise. A few examples:

stop city protest police       no results
stop city police                  no results
stop police city                  success
stop city protest                no results
stop protest city                success
city protest                       no results
protest city                       success
stop protest                      success
protest stop                      success
stop city                           success
city stop                           no results

I'm baffled. I hope that you aren't! I've had the catalog debugging on so I'm attaching the log. A few of the searches are from after I made the log.

David

Online Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24691
    • View Profile
    • Camera Bits, Inc.
Re: search failure
« Reply #13 on: January 03, 2024, 09:28:30 AM »
David,

Some sample images with the metadata you have in yours would be helpful for investigating the issue.

Thanks,

-Kirk

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
Re: search failure
« Reply #14 on: January 03, 2024, 09:49:43 AM »
Hi Kirk

Here are 4 from the 240 or so that a "stop the city" protest police search finds. The search results include jpg, tif, nef & psd files but for convenience I'm only sending jpg files. I've shrunk the image size but the metadata is unchanged. I could send more examples or do a metadata export from some or all if needed.

David