how to keep search from clipping letters when '-' in word?

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
bmchenrync
Registered User
Posts: 31
Joined: Fri Jan 16, 2015 8:27 pm

how to keep search from clipping letters when '-' in word?

Post by bmchenrync »

Have noticed when i search for a word with a '-' character in it
for example, a phpBB search for 'pc-crash' or +pc-crash or "pc-crash"
always returns note
"ignored pc"
and so searches for crash

pc-crash is the name of a program which people search for information on

is there a way to stop the search engine from clipping letters to left of the '-'

Thank you

let me add: have latest 3.3.8 installed
Last edited by Mick on Thu Jun 30, 2022 6:15 pm, edited 1 time in total.
Reason: Solved.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: how to keep search from clipping letters when '-' in word?

Post by Mick »

I think a hyphen (minus) is used in searches to exclude results with certain words that you do not want to see. Have you tried a wild card?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
bmchenrync
Registered User
Posts: 31
Joined: Fri Jan 16, 2015 8:27 pm

Re: how to keep search from clipping letters when '-' in word?

Post by bmchenrync »

thanks for quick response
no, putting a wildcard pc*crash does not return anything
strange even tried searching for
pc\-crash
still ignores the pc
BUT
searches for the -crash??
but doesn't find anything

guess folks shouldn't put '-' in their names!!
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: how to keep search from clipping letters when '-' in word?

Post by david63 »

Have you tried *crash?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: how to keep search from clipping letters when '-' in word?

Post by Mick »

Try -*crash
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
bmchenrync
Registered User
Posts: 31
Joined: Fri Jan 16, 2015 8:27 pm

Re: how to keep search from clipping letters when '-' in word?

Post by bmchenrync »

yes
unfortunately there are a LOT of posts with the word 'crash' in them
(over 65 pages worth!)

That is why i'd like to sort by specific words with crash in them
bmchenrync
Registered User
Posts: 31
Joined: Fri Jan 16, 2015 8:27 pm

Re: how to keep search from clipping letters when '-' in word?

Post by bmchenrync »

and -*crash returns no posts
like searching for /-crash
apparently since its a full word, pc-crash
it doesn't register/allow finding if only looking for -crash

i recall a search query where you could take all letters and search for &&&crash to try to get pc-crash
but that doesn't work either
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: how to keep search from clipping letters when '-' in word?

Post by Mick »

May I suggest you have a search on the web, there’s likely to be an answer there.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
bmchenrync
Registered User
Posts: 31
Joined: Fri Jan 16, 2015 8:27 pm

Re: how to keep search from clipping letters when '-' in word?

Post by bmchenrync »

figured it out (i think)
deleted the search index
and now when i search for pc-crash it finds pc crash
so the posts come up
(it is in process of rebuilding the index...shall see what happens once rebuilt)

thanks for all the ideas!

brian
bmchenrync
Registered User
Posts: 31
Joined: Fri Jan 16, 2015 8:27 pm

Re: how to keep search from clipping letters when '-' in word?

Post by bmchenrync »

after rebuilt search database all working fine
note i also set min lenght of a word to 2
so it can now find pc-crash
it looks for
pc crash
and picks up all the topics

excellent

thanks again!
Post Reply

Return to “[3.3.x] Support Forum”