Author Topic: Search misses some files...  (Read 8454 times)

0 Members and 1 Guest are viewing this topic.

Offline IGC

  • Newbie
  • *
  • Posts: 29
  • http://www.theanimegallery.com
    • View Profile
    • theAnimeGallery.com
Search misses some files...
« on: September 10, 2006, 07:22:06 AM »
Hello,

I have noticed that when I search my 4images site, not all possible results are shown... only a subset of the possible images is shown, and always the same set...
I don't know if the problem is a restriction on the result size or what it could be but here is the exact problem:

In my site (anime.igc-web.com/gallery) I have images divided into 5 big categories, each image inside of those big categories has a common description. In the case of wallpapers, all of their descriptions start with "Wallpaper:" and then the size of the wallpaper (1024x768, 800x600....)

If I do a search on "wallpaper" I should get ALL the images inside that category, plus any other that has wallpaper in the title, description whatever...

Ok, there are 53 wallpapers at the moment on my site, when I perform the search, I am only getting 24 images as a result.
Same thing happens with other searches (like 'preview' or 'cover' or screenshot').
In the case of preview, I should be getting a lottt of images back as a result, and I only get 7...

I've looked at the settings on the control panel, and I did not see anything that sets a limit on the number of results.

Does anyone know why this is happening??

I think this is a big problem... because someone searching may not get what they want because the search is not finding it, not because it is not there....

IGC

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Search misses some files...
« Reply #1 on: September 10, 2006, 09:23:20 AM »
1) did you modify search.php in any way? if you did, try use fresh, not modifyed and see if it helps
2) if the above didnt help, try use "rebuild search indexes" plugin
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline IGC

  • Newbie
  • *
  • Posts: 29
  • http://www.theanimegallery.com
    • View Profile
    • theAnimeGallery.com
Re: Search misses some files...
« Reply #2 on: September 11, 2006, 04:36:34 PM »
1) did you modify search.php in any way? if you did, try use fresh, not modifyed and see if it helps
2) if the above didnt help, try use "rebuild search indexes" plugin

I will do that... I will let you know if I keep having problems.

IGC

Offline IGC

  • Newbie
  • *
  • Posts: 29
  • http://www.theanimegallery.com
    • View Profile
    • theAnimeGallery.com
Re: Search misses some files...
« Reply #3 on: September 30, 2006, 05:24:55 PM »
worked perfectly with the rebuild search index plugin

Thanks V@no

Offline IGC

  • Newbie
  • *
  • Posts: 29
  • http://www.theanimegallery.com
    • View Profile
    • theAnimeGallery.com
Re: Search misses some files...
« Reply #4 on: January 10, 2007, 07:45:02 AM »
V@no, I found a different problems with the search feature...

I decided not to open a different post since it is still related with searches...

The thing is that I cannot successfully search for the following image title: "X TV"

No matter what search query I use, it will not find the images with that name... I've tried:

x, x*, x*tv, tv, tv*, *tv*, x-tv, x_tv... and nothing...

I thought it might be due to the search string being too short... but searching for "be*" returns successful hits, so I don't know what the problem may be.

However, if I search using the "Edit Images" feature on the admin control panel, everything works fine, and it finds the images with no problems.

Any ideas on how to solve this?? I was going to change the search.php code to use INSTR instead of LIKE on the actual sql query, but I wasn't sure of the consequences since I have never used INSTR

Thank you.

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Search misses some files...
« Reply #5 on: January 10, 2007, 06:50:22 PM »
Where can i find a image with the image title "X TV"  on your site?

Offline IGC

  • Newbie
  • *
  • Posts: 29
  • http://www.theanimegallery.com
    • View Profile
    • theAnimeGallery.com
Re: Search misses some files...
« Reply #6 on: January 10, 2007, 07:05:49 PM »
Where can i find a image with the image title "X TV"  on your site?

You can find some wallpapers here: http://anime.igc-web.com/gallery/categories.php?cat_id=114

IGC

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Search misses some files...
« Reply #7 on: January 10, 2007, 07:18:54 PM »
Do you use any modifications on your site?

And you have already rebuild the search index?

Offline IGC

  • Newbie
  • *
  • Posts: 29
  • http://www.theanimegallery.com
    • View Profile
    • theAnimeGallery.com
Re: Search misses some files...
« Reply #8 on: January 10, 2007, 07:28:37 PM »
Do you use any modifications on your site?

And you have already rebuild the search index?

I use some modifications, but as far as I know, none of them affect the way searches are done... I rebuilt the search index some time ago, and I can get all the images but those...

IGC

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Search misses some files...
« Reply #9 on: January 10, 2007, 07:39:56 PM »
Search in the includes/search_utils.php
Code: [Select]
    "#[\*\n\t\r^\$\(\)<>\"\|,@\?%~\+\.\[\]{}:\/=!§\\\\]+#s"
Replace with
Code: [Select]
    "#[\n\t\r^\$\(\)<>\"\|,@\?%~\+\.\[\]{}:\/=!§\\\\]+#s"

Hope this works...

Offline IGC

  • Newbie
  • *
  • Posts: 29
  • http://www.theanimegallery.com
    • View Profile
    • theAnimeGallery.com
Re: Search misses some files...
« Reply #10 on: January 10, 2007, 07:43:11 PM »
Search in the includes/search_utils.php
Code: [Select]
    "#[\*\n\t\r^\$\(\)<>\"\|,@\?%~\+\.\[\]{}:\/=!§\\\\]+#s"
Replace with
Code: [Select]
    "#[\n\t\r^\$\(\)<>\"\|,@\?%~\+\.\[\]{}:\/=!§\\\\]+#s"

Hope this works...

That was the solution that was proposed on a different post, and my search_utils.php already had that changed made when I looked at it.

So I don't know what the problem may be....  :?