Hello guest, if you like this forum, why don't you register? https://fanrestore.com/member.php?action=register (December 14, 2021) x


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Idea] Suggestion: Make search possible with less characters
#11
(2017-12-11, 05:40 PM)spoRv Wrote: I've set 3 characters and 10 seconds limit for everyone for testing purposes; if it will work well, maybe these limits would be definitive.

Now I can search for vhs - you're da man!
Reply
Thanks given by:
#12
(2017-12-11, 05:40 PM)spoRv Wrote: I've set 3 characters and 10 seconds limit for everyone for testing purposes; if it will work well, maybe these limits would be definitive.

Well yeah, but you also changed the search mode from fulltext to standard, which is way worse. Take a look at this, when searching for "D-VHS", standard mode gives 18 results, while fulltext returns 32, all of them accurate.

https://i.imgur.com/rgxw0a1.png
https://i.imgur.com/lImuvWf.png

https://i.imgur.com/wbelsDm.png

Is this worth being able to search for a keyword containing one character less? In my opinion, no
Reply
Thanks given by:
#13
There are pros and cons... I think there are no many search terms with only three characters, so the fulltext, albeit using four chars, is better. There is always the google search, after all!

Maybe a poll can be useful!
Reply
Thanks given by:
#14
Ooh, that's how you did it ... how about the following then:

if(strlen($searchterm)>3) {

fulltext blah blah

} else {

string search blah blah

}
Reply
Thanks given by:
#15
Thumbs Up 
(2017-12-11, 05:40 PM)spoRv Wrote: I've set 3 characters and 10 seconds limit for everyone for testing purposes; if it will work well, maybe these limits would be definitive.

Thanks! Especially for the 10 second limit, I don't think that will cause any problems for the server. Smile
Reply
Thanks given by:
#16
(2017-12-12, 02:29 AM)TomArrow Wrote: Ooh, that's how you did it ... how about the following then:

if(strlen($searchterm)>3) {

fulltext blah blah

} else {

string search blah blah

}

MyBB doesn't allow this by default, so I would have modify the code myself. Implementing and maintaining it would be a headache, I'm too lazy to do that
Reply
Thanks given by:
#17
Lol that's totally fair I guess

In that case I'd probably go back to fulltext as the current search doesnt work for multiple terms
Reply
Thanks given by:
#18
That would be my preference too, unless someone REALLY needs to have 3 character search limit
Reply
Thanks given by:
#19
Reverted to full text search - and 4 chars minimum - but left the 10 seconds limit, instead 30. This is because I don't see the point to allow 3 chars search, when you can't search more than one word...
Reply
Thanks given by:
#20
Cool. I have noted though that when you log in and watch the new posts searchs, any posts made during those 10/15mn you spend looking at new posts, disappear as the forum assume you are aware of them. So when you get back and hit new posts again, you will not see those new posts made from the last time you searched new posts, only new posts made from the last time you logged off.
For this reason I use today posts as to be sure I'm not missing anything. Weird forum quirk.

Also If I may suggest could everyone get a nice custom avatar? That would help us differentiate people as the built-in forum avatars all look the same.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
  Suggestion: Automatically add image sizes to image tags deleted user 1 3,019 2021-04-15, 12:52 PM
Last Post: MarianneBritt

Forum Jump:


Users browsing this thread: 1 Guest(s)