nukeSEO.com - PHPNuke SEO Search engine optimization, professional tools including nukeSEO, nukeSPAM, nukeFEED, nukePIE, nukeWYSIWYG and more

 

. Welcome to nukeSEO.com  ! 
.
.
.


.
nukeSEO.com: Forums


 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Searching for complete words
 
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> mSearch
View previous topic :: View next topic  
Author Message
jakec
webmaster


Joined: Nov 14, 2006
Posts: 23

PostPosted: Fri Jul 13, 2012 8:57 am    Post subject: Searching for complete words Reply with quote

Hi,

Is there a way to search for complete words. For instance if you are searching for 'sign' at the moment it will also return 'design' or 'significant'.


Thanks in advance

jakec
  
Back to top
View user's profile Send private message
kguske
Site Admin
Site Admin


Joined: May 12, 2005
Posts: 876

PostPosted: Sat Jul 14, 2012 6:10 pm    Post subject: Reply with quote

Not that I know of.
_________________
  
Back to top
View user's profile Send private message Visit poster's website
jakec






PostPosted: Sun Jul 15, 2012 5:06 am    Post subject: Reply with quote

Would it be an easy mod to return an exact match?
  
Back to top
kguske






PostPosted: Sun Jul 15, 2012 8:35 am    Post subject: Reply with quote

Not sure. I've never needed that - what would the SQL look like?
  
Back to top
jakec






PostPosted: Sun Jul 15, 2012 9:59 am    Post subject: Reply with quote

To be honest I'm a bit out of my comfort zone, but is it as simple as changing the 'like' to '=' in function doquery?
  
Back to top
jakec






PostPosted: Sun Jul 15, 2012 3:59 pm    Post subject: Reply with quote

I guess it isn't that simple, just gave it a go but it didn't work. Sad

I need to get some sleep and I'll have a look at this again tomorrow.
  
Back to top
montego
webmaster


Joined: Dec 26, 2005
Posts: 254

PostPosted: Sat Jul 21, 2012 10:46 am    Post subject: Reply with quote

If you can figure out an appropriate regular expression, it might be possible to use MySQL's regex capabilities:

http://dev.mysql.com/doc/refman/5.0/en/regexp.html
_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login!
  
Back to top
View user's profile Send private message Visit poster's website
montego






PostPosted: Sat Jul 21, 2012 11:11 am    Post subject: Reply with quote

By the way, another option might be to place a FULLTEXT index on the table/columns of interest and then use word searches.

http://dev.mysql.com/doc/refman/5.1/en/fulltext-search.html
  
Back to top
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> mSearch All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001-2008 phpBB Group


Page Generation: 0.02 Seconds