Search bug ?

zenphoto version 1.2.3 [3696
default theme

Hi, I just realized that when I perform a "free" search (with a word not a tag) from a page I got after having clicked on a tag, an image which is usually found is not found anymore.
(I hope it's clear...)

Any idea ?

Comments

  • I am not seeing this. Be sure that 'Tags' are one of the fields in the "free" search. If they are not selected, tags will not be part of the search.
  • flu Member
    Ok, Stephen, I'm not clear...
    Let's try again :
    For example, in the showcase section you have this site :
    http://www.ellykalf.nl/galerie/recent-werk/beschuit-met-muisjes.jpg.php

    The image title is : "Beschuit met muisjes" ok ?
    Then click on the tag "stilleven" below.
    So you are here :
    http://www.ellykalf.nl/galerie/page/search/tags/stilleven
    Then type "Beschuit" (which is a part of a title of an existing picture) in the search form on the right side : there's no result.

    You see what I mean ?

    I can't reproduce that on another site of the showcase section which doesn't use the clean URLS.
    Maybe it's a part of the problem.

    What do you think about it ?
  • acrylian Administrator, Developer
    That site is actually not a good example because it uses still 1.2.2...
  • flu Member
    Well I use the last nightly build but I got the same problem... even if I use the default theme.
  • flu Member
    Same thing here, using zenphoto version 1.2.3 [3427] :
    http://www.alepan.com/page/search/tags/manifestation
    then type "membre" (which is a part of the name of a displayed picture) in the search form : nothing found.
  • Well, of course, your first link is to the 1.2.2 site. The second link is to build 3427 whereas the current nightly build is 3696

    Additionally, from the second site there is no way for me to see what tags are supposed to be present.

    I cannot reproduce the problem with the nightly build on my site. I suggest you enable the tag suggest plugin. Be sure that the text you are searching for exists in the list that plugin produces.
  • flu Member
    Ok, about the second site, let's try again :
    go to http://www.alepan.com/page/archive
    then click on any tag in the tag cloud (for example "Bretagne")
    so you get this page : http://www.alepan.com/page/search/tags/Bretagne
    the title of the first image is "Bâteau à marée basse", right ?
    Then use the search form on the same page (http://www.alepan.com/page/search/tags/Bretagne) and type "Bâteau à marée basse" : result : no image found.

    I can reproduce this problem with Zenphoto version 1.2.3 [3696] with multilingual plugin on and clean url on. Don't you ?

    Thank you for your time.
  • Is 'Bâteau à marée basse' a tag? it is not showing up in your tag cloud.
  • flu Member
    Hi Stephen,
    in this example the tag is "Bretagne".
    The problem appears when you perform a "free" search (with words, not a tag) using the search form on the page you get after having performed a tag search.

    In this example, after a tag search with the tag "Bretagne" you get this page :
    http://www.alepan.com/page/search/tags/Bretagne
    Then you can see that the title of the first image in this album is 'Bâteau à marée basse'.
    If you perform a search from this page with this title (Bâteau à marée basse) using the search form you'll see that this image can't be found.
    Do you get it ?
  • acrylian Administrator, Developer
    Is this actually your site?

    I did look into the source code and I see these fields enabled for search:
    `



    nnnnnnnn

    `
    If I do understand correctly the image title or filename is no enabled and therefore not searched. But sbillard surely will know more.
  • flu Member
    Hi Malte,
    Yes you're right, the image title or filename is no enabled and therefore not searched on this website (which is not mine - as I get this problem, I've searched if it appears on other websites).
    This website was not a good example again, sorry.

    On my website I get this problem with this code :
    `




    `
    So I feel a lttle bit lost right now.
  • acrylian Administrator, Developer
    I just tried on my local test gallery and have virutally all fields enabled and I can search for a title without any problem (even of mulitple words like the "bretagne" example abobe). Not sure why that would be different here.
  • flu Member
    Well, of course I trust you Malte but are the friendly url plugin on ?

    Here is another example using zenphoto version 1.2.3 [3427] (Official Build) :
    http://mytasvir.com/

    The code is :
    `








    `
    so you can search a title.

    1.Let's try on the index page to perform this search "The Fremont Street Experience" which is a part of a title of an existing image : 1 image is found, ok ?

    2.Then let's go to the gallery archive :
    http://mytasvir.com/page/archive
    and click on the "North America" tag at the bottom of the page, we get this page :
    http://mytasvir.com/page/search/tags/North+America
    You can notice that the first image of the album is the one we got in free search before which title is "The Fremont Street Experience lightshow in downtown Las Vegas, Nevada."

    3.Then try to perform a search with these words "The Fremont Street Experience" using the search field on this page :
    http://mytasvir.com/page/search/tags/North+America
    No image found.

    You see what I mean ?
  • Well, that would be because on this page only the tag field is enabled.
  • flu Member
    Hi Stephen, I don't really understand what you mean.
    A "free" search can't be performed from a tag based search result page, right ?

    Another example : On your website I can't see what search fields are enabled, but if you go to your archive page :
    http://www.sbillard.org/page/archive
    and that you click on your "clock" tag in your tag cloud you'll get this page :
    http://www.sbillard.org/page/search/tags/Clocks

    The title of the first image in this album is "a lashmore".
    If you perform a search with these words (a lashmore) using the search form in this page :
    http://www.sbillard.org/page/search/tags/Clocks
    no image found.

    As I'm not sure of your settings, maybe my post is irrelevant (in this case, I'm really sorry), but I have the same problem with zenphoto version 1.2.3 [3696] even if the title is set as a search field.

    Thank you for your time anyway.
  • But you did not do a free search from that page--you did a tag search as evidenced by the selected fields. This is because the search fields are presumed from the previous search which in your case was a tag search.

    You can select other fields from the field selector if you want to broaden your search.
  • flu Member
    Excuse my english but, first I perform a tag search : clocks
    http://www.sbillard.org/page/search/tags/Clocks

    then from this page I perform a "free" search (not a tag one) : lashmore
    and I get no result. This is the problem for me.

    Right ?

    Is it not a kind of "bug" ?
  • No, not a bug. Search context is preserved. If you wish your search page to clear the context then you need have `$_zp_current_search->fields=0;` before you print the search form.
  • flu Member
    Well, Thank you Stephen. It seems a little bit weird to me.
    What is the point in preserving the search context ? Is it necessary for pagination ?

    Actually I don't really know where to put `$_zp_current_search->fields=0;` in this code.
    `<?php if (!checkForPassword()) {?><?php if (getOption('Allow_search')) { printSearchForm("","search","",gettext(" ")); } ?><?php } ?>`
  • Well, if you selected searching on say, EXIF wouldn't you expect that it would stay searching on EXIF? Otherwise you would have to make the selection on each search you did.

    Of course, if you start from the gallery again (presumably a serach not in the previous context) you will get back to the full list.
Sign In or Register to comment.