Advertisement:

Author Topic: Each word must be at least two characters long  (Read 4594 times)

Offline supernova777

  • Semi-Newbie
  • *
  • Posts: 72
Each word must be at least two characters long
« on: February 25, 2016, 05:40:05 PM »
how can i enable searches that include single digits such as
"Terminator 2" "Superman 3"
these searches are unable to execute..
how can i enable?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,119
  • Gender: Male
    • Kindred-999 on GitHub
Re: Each word must be at least two characters long
« Reply #1 on: February 25, 2016, 06:22:26 PM »
Not any good way
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline sǝๅqɯɐɥS

  • SMF Hero
  • ******
  • Posts: 4,511
  • Gender: Male
    • i30 Owners Club
Re: Each word must be at least two characters long
« Reply #2 on: February 26, 2016, 02:36:37 AM »
Quote from: supernova777
how can i enable searches that include single digits such as
"Terminator 2" "Superman 3"

I thought search terms enclosed in quote marks counted as a single word...?

Offline lurkalot

  • Sr. Member
  • ****
  • Posts: 978
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Each word must be at least two characters long
« Reply #3 on: February 26, 2016, 02:47:56 AM »
Quote from: supernova777
how can i enable searches that include single digits such as
"Terminator 2" "Superman 3"

I thought search terms enclosed in quote marks counted as a single word...?

Phrase search - use double quotes (") around your term ("search term") to search for the search term as a phrase instead of individual words. http://wiki.simplemachines.org/smf/Search

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,119
  • Gender: Male
    • Kindred-999 on GitHub
Re: Each word must be at least two characters long
« Reply #4 on: February 26, 2016, 06:28:16 AM »
DOH!   Of course.  Silly me.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline supernova777

  • Semi-Newbie
  • *
  • Posts: 72
Re: Each word must be at least two characters long
« Reply #5 on: July 09, 2017, 04:22:32 PM »
is there any reason why i shouldnt edit the php files to allow searches of single character terms?

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 3,937
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Each word must be at least two characters long
« Reply #6 on: July 09, 2017, 04:28:16 PM »
Probably, if you want your search to return a gazillion results.
Please do not PM me for support.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,051
    • Arantor on GitHub
Re: Each word must be at least two characters long
« Reply #7 on: July 09, 2017, 04:59:16 PM »
And even then there is a 2/3 chance it wouldn't work anyway.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Siirist

  • Sophist Member
  • *****
  • Posts: 1,201
  • Gender: Male
  • What would Kindred or Illori do?
    • A Sanctuary (Support for Survivors of abuse/Info for Family & Friends)
Re: Each word must be at least two characters long
« Reply #8 on: July 09, 2017, 10:17:25 PM »
Hi,

Just tossing in a thought.

If I was not able to get the suggestions to solve the issue, I would have the posts or those who post spell out the numbers, such as Superman One, Terminator Two, etc.

Just a thought, but if you already have a bunch of posts as Superman 1 or Terminator 2, I hope the suggestions solve the issue.

Best Wishes,
Siirist
Needed information:
- What's your SMF version?, What MODs are installed? What Theme(s) are you using? Have you backed up your database?

--> At least 50% of the questions asked are answered in the Online Manual <--
Mods for ver 1.x will NOT run on ver 2.x

Offline Dwev

  • Semi-Newbie
  • *
  • Posts: 39
Re: Each word must be at least two characters long
« Reply #9 on: December 03, 2017, 08:03:37 AM »
I'm interested in this, because i'm running an Apple forum, so lots of searches are done for for instance "iPhone X" or "iPhone 8".

For the moment I added the explanation that people should use double quotes around the search term, but I would prefer to just have it work without explaining anything.

So can someone tell me what edit, and in which php-files, should be done to make one-chrachter searches possible?

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 3,937
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Each word must be at least two characters long
« Reply #10 on: December 03, 2017, 08:13:45 AM »
Again, if you allow that, anyone searching for the letter e will get almost every post returned as a result.
Please do not PM me for support.

Offline digger

  • Full Member
  • ***
  • Posts: 676
  • Gender: Male
    • realdigger on GitHub
    • SMF Russian Community
Re: Each word must be at least two characters long
« Reply #11 on: December 03, 2017, 12:21:38 PM »
I'm interested in this, because i'm running an Apple forum, so lots of searches are done for for instance "iPhone X" or "iPhone 8".

For the moment I added the explanation that people should use double quotes around the search term, but I would prefer to just have it work without explaining anything.

So can someone tell me what edit, and in which php-files, should be done to make one-chrachter searches possible?
https://custom.simplemachines.org/mods/index.php?mod=2648

Offline Dwev

  • Semi-Newbie
  • *
  • Posts: 39
Re: Each word must be at least two characters long
« Reply #12 on: December 04, 2017, 08:03:56 AM »
Again, if you allow that, anyone searching for the letter e will get almost every post returned as a result.

I know, but how many people search for one letter?
And everyone who does execute a search with just one letter probably won't do it twice...   ;)

https://custom.simplemachines.org/mods/index.php?mod=2648

Thanks, I saw that mod earlier. But since it listed version 2.0.8 as the latest that it would work with I presumed it was too old and wouldn't work on my forum (which runs 2.0.14 right now).

After you advised it I tried it anyway, and it works without a hitch on 2.0.14!  :)

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,119
  • Gender: Male
    • Kindred-999 on GitHub
Re: Each word must be at least two characters long
« Reply #13 on: December 04, 2017, 10:40:59 AM »
 You need to upgrade to 2.0.15 very soon, it is a security update and should be applied as soon as possible
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.