Advertisement:

Author Topic: Search engine "two characters long"  (Read 9899 times)

Offline exxocet

  • Jr. Member
  • **
  • Posts: 121
Search engine "two characters long"
« on: April 06, 2017, 02:44:26 PM »
  When searching for 1...2 characters, the search returns "Each word must be at least two characters long" and no search is done. That's mega-annoying for the users and  it's only happening on SMF.
  Yes, I understand that the search engine will skip 1 or 2 characters terms and all forum softwares do that, but neverthless it should do the search for the remaining valid terms and display the results, along with a warning "words with less than 2 characters were skipped".

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 3,777
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Search engine "two characters long"
« Reply #1 on: April 06, 2017, 06:40:36 PM »
I'm confused. If you search for one or two characters you're going to get that prompt. I don't understand what you're trying to search for.


Edit: I think I just realized what you're asking. Let me make sure. If you search for 'at' you want it to return all results that contain 'at', for example 'mate', but say that the word 'at' was skipped, correct?
Please do not PM me for support.

Offline Dav999

  • Jr. Member
  • **
  • Posts: 174
  • Gender: Male
Re: Search engine "two characters long"
« Reply #2 on: April 06, 2017, 08:17:40 PM »
He/She means that if you enter "this is a search term", the entire search will get blocked by the 1-letter word in there.

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 271
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Search engine "two characters long"
« Reply #3 on: April 06, 2017, 08:48:01 PM »
Yes I believe that's his concern. That search currently returns "Each word must be at least two characters long."

I think what he wants is: If a search is done on "this is a search term" the result will be as per the attachment, with a note that:

"words with less than 2 characters were skipped"



 
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 3,777
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Search engine "two characters long"
« Reply #4 on: April 06, 2017, 09:37:41 PM »
But it makes not sense to have the system search for every instance of the letter 'd', for example, and eliminating all the single instances of it.
Please do not PM me for support.

Offline landyvlad

  • Jr. Member
  • **
  • Posts: 271
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Search engine "two characters long"
« Reply #5 on: April 06, 2017, 11:56:47 PM »
paging exxocet....
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Offline exxocet

  • Jr. Member
  • **
  • Posts: 121
Re: Search engine "two characters long"
« Reply #6 on: April 08, 2017, 11:32:33 AM »
  I'm not asking to search for one letter terms. I'm asking to skip those, but continue with the search. That's what all the other forums software do.
  Per instance, if you're searching for "a dog", SMF won't do the search at all, but it will return "Each word must be at least two characters long". You'll have to came back and remove "a", in order to successfully get some search results. This is very annoying, you'll have to make another operation, pick every 1 char terms and manually remove it just to get that search done.

  Right now is working like this
1 - type "a dog" and hit search button
2 - surprise, you won't get any search result, but that damn "Each word must be at least two characters long"
3 - go back and remove "a", search only for "dog"
4 - finally get search results

  It should work like this:
1 - type "a dog" and hit search button
2 - get search results and a notification: "one characters terms have been skipped"

Hope now I've made myself understood. Thank you guys!

Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 3,777
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Search engine "two characters long"
« Reply #7 on: April 08, 2017, 03:08:14 PM »
Now I understand. Thanks for explaining it. :)
Please do not PM me for support.

Offline lurkalot

  • Sr. Member
  • ****
  • Posts: 934
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Search engine "two characters long"
« Reply #8 on: April 08, 2017, 03:37:31 PM »

  Per instance, if you're searching for "a dog", SMF won't do the search at all, but it will return "Each word must be at least two characters long". You'll have to came back and remove "a", in order to successfully get some search results.


Actually, searching for "a dog" won't give you that warning, if you leave the double quotes in place.  Just search between double quotes and you'll see what I mean.

Offline exxocet

  • Jr. Member
  • **
  • Posts: 121
Re: Search engine "two characters long"
« Reply #9 on: April 09, 2017, 04:28:03 AM »

  Per instance, if you're searching for "a dog", SMF won't do the search at all, but it will return "Each word must be at least two characters long". You'll have to came back and remove "a", in order to successfully get some search results.


Actually, searching for "a dog" won't give you that warning, if you leave the double quotes in place.  Just search between double quotes and you'll see what I mean.


  I know what it does, I know for 20 years about exact phrases, double quotes marks are there just for specifying 'a dog' are search terms.

  Imagine searching for 'a dog' on Google and instead of results, getting "Each word must be at least two characters long". A reliable way to bust their company in just a couple of months and have Bing and DuckDuckGo eating the cake.

Offline lurkalot

  • Sr. Member
  • ****
  • Posts: 934
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Search engine "two characters long"
« Reply #10 on: April 09, 2017, 05:01:01 AM »
OK, so as a workaround, what about adding a google site search to your website.

I can't see the SMF built in one changing any time soon, or at least not in this version. It's been like this for a very long time.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 67,723
    • Arantor on GitHub
Re: Search engine "two characters long"
« Reply #11 on: April 09, 2017, 06:32:53 AM »
It's also not officially considered a bug either so no chance of a change in 2.0.
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 exxocet

  • Jr. Member
  • **
  • Posts: 121
Re: Search engine "two characters long"
« Reply #12 on: April 09, 2017, 09:30:09 AM »
It's also not officially considered a bug either so no chance of a change in 2.0.

  It should be. Not exactly a bug, OK, rather a missing feature.
  Not a chance on vanilla 2.0, I understand that, but I guess it could be a suggestion for 2.1.
Thanks for your answers.
 

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 67,723
    • Arantor on GitHub
Re: Search engine "two characters long"
« Reply #13 on: April 09, 2017, 10:25:02 AM »
Given how much frustration I had to convince the team of changes that required less work because 'it's always been this way', good luck.
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 albertlast

  • Development Contributor
  • Jr. Member
  • *
  • Posts: 154
Re: Search engine "two characters long"
« Reply #14 on: April 09, 2017, 02:21:41 PM »
i don't understand what your all talking about...
in my 2.1 env when i search a dog than i got the message "The following term has been ignored in your search because too short:a"
when i search "a dog" no messages apear (and the database search for both).
both test the searching is done.

both tested with mysql and pg.

so where is your issue?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 67,723
    • Arantor on GitHub
Re: Search engine "two characters long"
« Reply #15 on: April 09, 2017, 02:50:41 PM »
This is certainly an issue in 2.0. I certainly didn't test it in 2.1 to see if the behaviour had been changed.
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 exxocet

  • Jr. Member
  • **
  • Posts: 121
Re: Search engine "two characters long"
« Reply #16 on: April 10, 2017, 04:53:27 AM »
  Well, at least I've tried. Thanks for your time, Arantor.