Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: regex search

by dvergin (Monsignor)
on Jul 10, 2003 at 00:15 UTC ( #272864=note: print w/ replies, xml ) Need Help??


in reply to regex search

You don't say which database you are using. But MySQL and other databases provide a Full-text Search capability which provides weighted results to text queries of just the kind you are describing. You can access this through DBI just like any other SQL query you might submit.

There is some overhead involved for the database engine to maintain the full-text index, but I have found that to be small in comparison to the savings, flexibility, and convenience in searching -- especially when the data is relatively stable in comparison to the frequency of the searches.

------------------------------------------------------------
"Perl is a mess and that's good because the
problem space is also a mess.
" - Larry Wall


Comment on Re: regex search

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://272864]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (14)
As of 2014-07-23 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (152 votes), past polls