Author Topic: Discovered something strange about the search function  (Read 6345 times)

0 Members and 1 Guest are viewing this topic.

Offline kitty999

  • Newbie
  • *
  • Posts: 21
    • View Profile
Discovered something strange about the search function
« 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.

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Discovered something strange about the search function
« Reply #1 on: June 15, 2017, 09:03:38 PM »

Offline kitty999

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Discovered something strange about the search function
« Reply #2 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.

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Discovered something strange about the search function
« Reply #3 on: June 16, 2017, 04:54:24 PM »
Then I'm a bit helpless at the moment.

You have not changed anything, or.

Offline kitty999

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Discovered something strange about the search function
« Reply #4 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.

Offline nobby

  • 4images Guru
  • *******
  • Posts: 2.873
    • View Profile
Re: Discovered something strange about the search function
« Reply #5 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
« Last Edit: June 16, 2017, 07:29:57 PM by nobby »