Search results wrong

Hello!
Here are some details of the installation:
Zenphoto version 1.4.0.3 [6817] (Official Build)
Current locale setting: en_US.UTF8
Current gallery theme: Greek Orchid Society, based on Default theme(just changed the CSS basically and added one line of php code in image.php).
PHP version: 5.2.15, MySQL version: 5.1.52, My browser: Firefox 3.6.16
Search options: Search field: Title, treat spaces as AND, return image matches only.

Search query URL: http://www.greekorchidsociety.org/orchids/gallery/index.php?p=search&words=Aerangis+biloba+(Lindl.)+Schltr.

Zenphoto output:
Total matches for Aerangis AND biloba AND ( Lindl. ) AND Schltr.: 5

Aerangis biloba (Lindl.) Schltr.
Amitostigma lepidum (Lindl.) Schltr.
Amitostigma lepidum (Lindl.) Schltr.
Amitostigma lepidum (Lindl.) Schltr.
Amitostigma lepidum (Lindl.) Schltr.

(There are four differebt photos with title "Amitostigma lepidum (Lindl.) Schltr." so that is OK)

But why does it show "Amitostigma lepidum (Lindl.) Schltr."? It should only show "Aerangis biloba (Lindl.) Schltr." since it treats spaces as AND, or am I missing something?
I get the same search results if I search for "Amitostigma lepidum (Lindl.) Schltr.", even though that should not happen either.

This issue exists even if I switch back to the default theme, so I don't think my custom theme is the issue.

Any ideas?
Thank you for your time and a for a magnificent piece of software!!!

Vasilis

Comments

  • What are the %28 and %29 characters supposed to be? If I eliminate them, the search works as you wish. With them, the last space is somehow not made into an AND.
  • vstam Member
    Actually, I did not notice that. At the address bar they appear as brackets. But when I copy and paste the url, they are transformed into %28 and %29. It is not Zen Photo related then.
    Thank you!
  • I did some experimentation. Looks like there is a Zenphoto problem handling parenthetical clauses vs the space handling. Well see if we can find a fix.
  • I have fixed the basic paren issue. Fix will be in tonight's build. Give it a try and see if it also fixes your issue.
  • vstam Member
    Thank you sbillard! I will give it try ASAP and let you know. :)
Sign In or Register to comment.