4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: kitty999 on June 15, 2017, 07:15:15 PM

Title: Discovered something strange about the search function
Post by: kitty999 on June 15, 2017, 07:15:15 PM
I recently discovered if i search for an image with a spelled number (for example three, two, one, etc.) it says no matching records. I have images with the word three, one, etc in them but it doesn't recognize the 'number' words. Anyone else have this problem?

I'm using 4images 1.7.13
I have quite a bit of mods but nothing I know that would cause this.

Any help is greatly appreciated.
Title: Re: Discovered something strange about the search function
Post by: nobby on June 15, 2017, 09:03:38 PM
Hello,

Maybe you could help  :arrow: http://www.4homepages.de/forum/index.php?topic=1096.0


nobby
Title: Re: Discovered something strange about the search function
Post by: kitty999 on June 16, 2017, 12:36:13 PM
Thanks for the quick response nobby,

I have that plugin and have reindexed but it still won't search numeric spelled words (one,two,three). All the other words are indexed fine. The numeral words even show up on the details page as keywords but when clicked on they're not found. My mind is boggled.
Title: Re: Discovered something strange about the search function
Post by: nobby on June 16, 2017, 04:54:24 PM
Then I'm a bit helpless at the moment.

You have not changed anything, or.
Title: Re: Discovered something strange about the search function
Post by: kitty999 on June 16, 2017, 06:50:22 PM
Thanks anyway,
 I have a lot of MODS and have changed so much in the script it's really hard to tell, I just don't know what could possibly cause it. I'll keep fiddling and if I find out I'll post it.
Title: Re: Discovered something strange about the search function
Post by: nobby on June 16, 2017, 07:15:39 PM
OK!

If I know something new, I'll sign up.


EDIT:
Search in includes/constants.php
Code: [Select]
define('MIN_SEARCH_KEYWORD_LENGTH', 3);
Change to
Code: [Select]
define('MIN_SEARCH_KEYWORD_LENGTH', 2);
Then rebuild the search index