Yes - just write a simple or weighted reverse index. Its trivial in any relational database and works accross tables and can be weighted by key columns or object attributes.
Don't use native RDBMS or SQL like unless you want your site to be as unsearchable as the millions of others out there.
Which reminds me - perl.com, and many perl sites (including search.cpan and perldoc.com) still have sucky searches - who else is interested in getting together and trying to improve them?
I am planning to port my current searchable class to Class::DBI, which might help. I will probably look at a module to provide a similar functionality in a procedural way to non-OO code.
Perl.com (Score:1)
I'm interested in improvements to Perl.com; I'm exploring ways to improve the searching and findability of articles across the entire O'Reilly Network. Please feel free to send me ideas.
Re:Perl.com (Score:2)
It would be nice if perl.com could showcase good perl solutions.
If I knew what perl.com was using I would be happy to make suggestions.
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Maybe these can help (Score:1)
http://search.cpan.
http://search.cpan.org/~snowhare
I used the last one with good results.
--
life is short
Re:Maybe these can help (Score:2)
I wrote a handy class that implements cross-object context specific searching - Class-Indexed-0.01 [cpan.org]
Its based on the article I wrote for perl.com
The others aren't a solution - native RDBMS fulltext searching is only useful for really trivial cases - if your data is only in a single table and has a very simple structure so you are only interested in 1 or 2 columns and they don't change - move beyond that and nati
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;
Re:Maybe these can help (Score:1)
I agree that a reverse index is typically the way to go for custom searching. It scales well and is very customizable.
Re:Maybe these can help (Score:2)
As I said, even a good native RDBMS can be improved on trivially with a competent custom reverse index, as stemming, etc are trivial in perl. Native RDBMS are only
@JAPH = qw(Hacker Perl Another Just);
print reverse @JAPH;