Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Adjusting the four character limit for a functional search
Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Jan 13, 2017 - 4:05 pm

Mr Papa said
in your theme spFunctions.php file, just add this with desired value:

OK... but I'm still curious about wildcard characters, are there any and is there an explanation somewhere? I could have sworn I saw something about characters like % matching "exactly one character" etc.

I'm guessing the spFunctions hack you're recommending will affect all searches, which could impact performance...just wondering if there is a way to allow members to search for a specific three letter word.

Thanks!

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 13, 2017 - 4:46 pm

those old wildcards were for the mysql full text search...  which is not done anymore... so, afraid there are not any wildcards...  yes, the define will affect all forum searches...

Avatar
jim
Here and Now
Member
Pro Subscribers
sp_UserOfflineSmall Offline
Jan 20, 2017 - 2:05 pm

Mr Papa said
in your theme spFunctions.php file, just add this...

Thanks! This is going to affect all searches though, which I understand may impact performance on forums our size. I'll give it a try, but still curious...

Is there no way for a user to enter a search query using wildcard characters to search for the word cat surrounded by a space on each side? 

Like: "(space)cat(space)" Something like: "_cat_" or "%cat%"

I can search for cat in our forums, but it returns all results of words containing cat...just wondering if there's any way to include blank spaces in the search query.

TripawdsSimple:Press powers the Tripawds Discussion Forums.

It's better to hop on three legs than to limp on four.

The Tripawds Blogs Community is made possible by The Tripawds Foundation.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 20, 2017 - 3:29 pm

I see your problem. I thought we allowed for this so I will need to check back and see if anything got changed mistakenly at some point. Or - how to implement it if not.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 20, 2017 - 8:12 pm

the default search is %cat%...  afraid, that is about all that can be done currently...  you can of course use the 'sph_search_term' filter and change it up like you like (ie replace the % with other wildcard chars..

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 21, 2017 - 4:45 am

I tried quite a few things last night and have not, yet, been able to find any pattern that will work as you want. Which is a surprise. But I have not exhausted looking yet...

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625